Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(issue): hide learn more button in standalone mode (#10307)

boojack5ac513c14c01
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
index cdbfa910bc..f8f1eb608d 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
@@ -38,11 +38,12 @@
<p class="font-medium text-control">
{{ $t("task.online-migration.gho\st-parameters") }}
-
- <LearnMoreLink
- class="text-sm ml-1"
- url="https://github.com/github/gh-ost/blob/master/doc/command-line-flags.md"
- />
+ <HideInStandaloneMode>
+ <LearnMoreLink
+ class="text-sm ml-1"
+ url="https://github.com/github/gh-ost/blob/master/doc/command-line-flags.md"
+ />
+ </HideInStandaloneMode>
</p>
<FlagsForm v-model:flags="flags" :readonly="readonly" />
</div>
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
index 8170272869..7579dcb784 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
@@ -15,10 +15,12 @@
class="whitespace-pre-line max-w-[20rem]"
>
<template #link>
- <LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql"
- color="light"
- />
+ <HideInStandaloneMode>
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/change-database/online-schema-migration-for-mysql"
+ color="light"
+ />
+ </HideInStandaloneMode>
</template>
</i18n-t>
</template>
diff --git a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackSection.vue b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackSection.vue
index 134e5ac8cf..6a489a7046 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackSection.vue
@@ -16,10 +16,12 @@
class="whitespace-pre-line"
>
<template #link>
- <LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/rollback-data-changes?source=console"
- color="light"
- />
+ <HideInStandaloneMode>
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/change-database/rollback-data-changes?source=console"
+ color="light"
+ />
+ </HideInStandaloneMode>
</template>
</i18n-t>
</template>
diff --git a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackStatus.vue b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackStatus.vue
index 7da646d552..43a552bbcb 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackStatus.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/RollbackSection/RollbackStatus.vue
@@ -47,11 +47,13 @@
<div v-if="!config?.rollbackSheet" class="whitespace-pre-line">
{{ $t("task.rollback.empty-rollback-statement") }}
- <LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/rollback-data-changes?source=console#why-i-get-the-rollback-sheet-is-empty"
- color="light"
- class="ml-1"
- />
+ <HideInStandaloneMode>
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/change-database/rollback-data-changes?source=console#why-i-get-the-rollback-sheet-is-empty"
+ color="light"
+ class="ml-1"
+ />
+ </HideInStandaloneMode>
</div>
</NTooltip>
</template>
diff --git a/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue b/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
index 14f765140a..01aaffcb25 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
@@ -31,11 +31,13 @@
</template>
<div class="whitespace-nowrap">
<span>{{ $t("issue.sdl.left-schema-may-change") }}</span>
- <LearnMoreLink
- url="https://www.bytebase.com/docs/change-database/state-based-migration/#caveats?source=console"
- color="light"
- class="ml-1"
- />
+ <HideInStandaloneMode>
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/change-database/state-based-migration/#caveats?source=console"
+ color="light"
+ class="ml-1"
+ />
+ </HideInStandaloneMode>
</div>
</NTooltip>
</div>