Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update rollout action text for data export issue (#11519)
boojackb98490f32716
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vueindex 4a0ef0805e..0e1e1c7c90 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/request/ExportArchiveDownloadButton.vue@@ -17,7 +17,7 @@class="flex flex-row items-center gap-2 text-sm textlabel !leading-8"><CircleCheckBigIcon class="w-5 h-auto" />- {{ $t("issue.data-export.exported-file-downloaded") }}+ {{ $t("issue.data-export.file-downloaded") }}</div></template>diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/RolloutActionButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/RolloutActionButton.vueindex ad97b1b538..70815b713b 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/RolloutActionButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/RolloutActionButton.vue@@ -88,7 +88,7 @@ const errors = asyncComputed(async () => {const actionList = computed(() => {const { action } = props;- const text = taskRolloutActionDisplayName(action);+ const text = taskRolloutActionDisplayName(action, activeTask.value);const actionProps: RolloutButtonAction["props"] = {...taskRolloutActionButtonProps(action),tag: "div",diff --git a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vueindex d64bba0481..8002b952d2 100644--- a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue+++ b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue@@ -165,14 +165,14 @@ const { t } = useI18n();const state = reactive<LocalState>({loading: false,});-const { issue, events } = useIssueContext();+const { issue, activeTask, events } = useIssueContext();const comment = ref("");const performActionAnyway = ref(false);const title = computed(() => {if (!props.action) return "";- const action = taskRolloutActionDisplayName(props.action);+ const action = taskRolloutActionDisplayName(props.action, activeTask.value);if (props.taskList.length > 1) {return t("task.action-all-tasks-in-current-stage", { action });}diff --git a/frontend/src/components/IssueV1/logic/action/task.ts b/frontend/src/components/IssueV1/logic/action/task.tsindex 64e8feb0de..28622773ab 100644--- a/frontend/src/components/IssueV1/logic/action/task.ts+++ b/frontend/src/components/IssueV1/logic/action/task.ts@@ -1,3 +1,4 @@+import { head } from "lodash-es";import type { ButtonProps } from "naive-ui";import { t } from "@/plugins/i18n";import { userNamePrefix } from "@/store/modules/v1/common";@@ -77,10 +78,15 @@ export const getApplicableTaskRolloutActionList = (});};-export const taskRolloutActionDisplayName = (action: TaskRolloutAction) => {+export const taskRolloutActionDisplayName = (+ action: TaskRolloutAction,+ task?: Task+) => {switch (action) {case "ROLLOUT":- return t("common.rollout");+ return task?.type === Task_Type.DATABASE_DATA_EXPORT+ ? t("common.export")+ : t("common.rollout");case "CANCEL":return t("common.cancel");case "RETRY":@@ -100,7 +106,7 @@ export const taskRolloutActionDialogButtonName = (// Avoiding [Cancel] [Cancel] button group scenereturn t("task.cancel-task", tasks.length);}- return taskRolloutActionDisplayName(action);+ return taskRolloutActionDisplayName(action, head(tasks));};export const taskRolloutActionButtonProps = (diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex f3d0272fdb..d649b6f0a3 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1181,7 +1181,7 @@"options": "Options","format": "Format","encrypt": "Encrypt",- "exported-file-downloaded": "File Downloaded"+ "file-downloaded": "File Downloaded"}},"alter-schema": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 8a57b13af7..de3b113180 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1181,7 +1181,7 @@"options": "Opciones de exportación","format": "Formato","encrypt": "Cifrar",- "exported-file-downloaded": "Archivo Descargado"+ "file-downloaded": "Archivo Descargado"}},"alter-schema": {@@ -3390,4 +3390,4 @@"head": "Cabeza","show-diff-with-branch-baseline": "Mostrar diferencia con la línea base de la rama"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 040123d2c0..38324f1455 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -1181,7 +1181,7 @@"options": "エクスポートオプション","format": "フォーマット","encrypt": "暗号化",- "exported-file-downloaded": "ファイルがダウンロードされました"+ "file-downloaded": "ファイルがダウンロードされました"}},"alter-schema": {@@ -3390,4 +3390,4 @@"head": "頭","show-diff-with-branch-baseline": "ブランチベースラインとの差分を表示"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 6787b3982b..3abf2adc37 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -1181,7 +1181,7 @@"options": "Tùy chọn xuất","format": "Định dạng","encrypt": "Mã hóa",- "exported-file-downloaded": "Tệp đã được tải xuống"+ "file-downloaded": "Tệp đã được tải xuống"}},"alter-schema": {@@ -3390,4 +3390,4 @@"head": "Cái đầu","show-diff-with-branch-baseline": "Hiển thị sự khác biệt với đường cơ sở của nhánh"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex afa5c4ed03..189b85fa5a 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1181,7 +1181,7 @@"options": "配置项","format": "导出格式","encrypt": "加密",- "exported-file-downloaded": "文件已下载"+ "file-downloaded": "文件已下载"}},"alter-schema": {@@ -3390,4 +3390,4 @@"head": "当前","show-diff-with-branch-baseline": "显示与分支基线之间的差异"}-}\ No newline at end of file+}