diff --git a/core/i18n/lang/en.yaml b/core/i18n/lang/en.yaml index ee7b4da56..c0b6d0bd1 100644 --- a/core/i18n/lang/en.yaml +++ b/core/i18n/lang/en.yaml @@ -82,6 +82,7 @@ RestartAfterUpgrade: "Start Service After Upgrade" #add node TaskAddNode: "Add Node" +SyncAgentBaseInfo: "Sync Node Base Data" GenerateSSLInfo: "Generate Node SSL Information" ConnInfoNotMatch: "Connection information does not match"; MakeAgentPackage: "Generate Node Installation Package" diff --git a/core/i18n/lang/zh-Hant.yaml b/core/i18n/lang/zh-Hant.yaml index e61b54e51..521bd1aa7 100644 --- a/core/i18n/lang/zh-Hant.yaml +++ b/core/i18n/lang/zh-Hant.yaml @@ -82,6 +82,7 @@ RestartAfterUpgrade: "升級後啟動服務" #node create TaskAddNode: "添加節點" +SyncAgentBaseInfo: "同步節點基礎數據" GenerateSSLInfo: "生成節點 SSL 信息" ConnInfoNotMatch: "連接信息不匹配"; MakeAgentPackage: "生成節點安裝包" diff --git a/core/i18n/lang/zh.yaml b/core/i18n/lang/zh.yaml index 6a78ca67a..70061ecb3 100644 --- a/core/i18n/lang/zh.yaml +++ b/core/i18n/lang/zh.yaml @@ -83,6 +83,7 @@ RestartAfterUpgrade: "升级后启动服务" #add node TaskAddNode: "添加节点" +SyncAgentBaseInfo: "同步节点基础数据" GenerateSSLInfo: "生成节点 SSL 信息" ConnInfoNotMatch: "连接信息不匹配" MakeAgentPackage: "生成节点安装包" diff --git a/frontend/src/views/container/compose/create/index.vue b/frontend/src/views/container/compose/create/index.vue index 268c38483..c18b8fc7b 100644 --- a/frontend/src/views/container/compose/create/index.vue +++ b/frontend/src/views/container/compose/create/index.vue @@ -70,9 +70,9 @@ import { reactive, ref } from 'vue'; import FileList from '@/components/file-list/index.vue'; import { Rules } from '@/global/form-rules'; import i18n from '@/lang'; -import { ElForm, ElMessage, ElMessageBox } from 'element-plus'; +import { ElForm, ElMessageBox } from 'element-plus'; import { loadBaseDir } from '@/api/modules/setting'; -import { MsgError } from '@/utils/message'; +import { MsgError, MsgSuccess } from '@/utils/message'; import CodemirrorPro from '@/components/codemirror-pro/index.vue'; import TaskLog from '@/components/task-log/index.vue'; import { listComposeTemplate, testCompose, upCompose } from '@/api/modules/container'; @@ -201,7 +201,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => { form.taskID = newUUID(); await upCompose(form); openTaskLog(form.taskID); - ElMessage.success(i18n.global.t('commons.msg.operationSuccess')); + MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); } }) .catch(() => { diff --git a/frontend/src/views/container/image/build/index.vue b/frontend/src/views/container/image/build/index.vue index 1b1340857..c9381c415 100644 --- a/frontend/src/views/container/image/build/index.vue +++ b/frontend/src/views/container/image/build/index.vue @@ -46,10 +46,11 @@ import FileList from '@/components/file-list/index.vue'; import { reactive, ref } from 'vue'; import { Rules } from '@/global/form-rules'; import i18n from '@/lang'; -import { ElForm, ElMessage } from 'element-plus'; +import { ElForm } from 'element-plus'; import { imageBuild } from '@/api/modules/container'; import TaskLog from '@/components/task-log/index.vue'; import { newUUID } from '@/utils/util'; +import { MsgSuccess } from '@/utils/message'; const drawerVisible = ref(false); const taskLogRef = ref(); @@ -95,7 +96,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => { form.taskID = newUUID(); await imageBuild(form); openTaskLog(form.taskID); - ElMessage.success(i18n.global.t('commons.msg.operationSuccess')); + MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); }); }; const openTaskLog = (taskID: string) => {