Skip to content

Commit bb25055

Browse files
authored
feat: Add node information synchronization steps (#7723)
1 parent 78199a4 commit bb25055

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

core/i18n/lang/en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RestartAfterUpgrade: "Start Service After Upgrade"
8282

8383
#add node
8484
TaskAddNode: "Add Node"
85+
SyncAgentBaseInfo: "Sync Node Base Data"
8586
GenerateSSLInfo: "Generate Node SSL Information"
8687
ConnInfoNotMatch: "Connection information does not match";
8788
MakeAgentPackage: "Generate Node Installation Package"

core/i18n/lang/zh-Hant.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RestartAfterUpgrade: "升級後啟動服務"
8282

8383
#node create
8484
TaskAddNode: "添加節點"
85+
SyncAgentBaseInfo: "同步節點基礎數據"
8586
GenerateSSLInfo: "生成節點 SSL 信息"
8687
ConnInfoNotMatch: "連接信息不匹配";
8788
MakeAgentPackage: "生成節點安裝包"

core/i18n/lang/zh.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ RestartAfterUpgrade: "升级后启动服务"
8383

8484
#add node
8585
TaskAddNode: "添加节点"
86+
SyncAgentBaseInfo: "同步节点基础数据"
8687
GenerateSSLInfo: "生成节点 SSL 信息"
8788
ConnInfoNotMatch: "连接信息不匹配"
8889
MakeAgentPackage: "生成节点安装包"

frontend/src/views/container/compose/create/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ import { reactive, ref } from 'vue';
7070
import FileList from '@/components/file-list/index.vue';
7171
import { Rules } from '@/global/form-rules';
7272
import i18n from '@/lang';
73-
import { ElForm, ElMessage, ElMessageBox } from 'element-plus';
73+
import { ElForm, ElMessageBox } from 'element-plus';
7474
import { loadBaseDir } from '@/api/modules/setting';
75-
import { MsgError } from '@/utils/message';
75+
import { MsgError, MsgSuccess } from '@/utils/message';
7676
import CodemirrorPro from '@/components/codemirror-pro/index.vue';
7777
import TaskLog from '@/components/task-log/index.vue';
7878
import { listComposeTemplate, testCompose, upCompose } from '@/api/modules/container';
@@ -201,7 +201,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
201201
form.taskID = newUUID();
202202
await upCompose(form);
203203
openTaskLog(form.taskID);
204-
ElMessage.success(i18n.global.t('commons.msg.operationSuccess'));
204+
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
205205
}
206206
})
207207
.catch(() => {

frontend/src/views/container/image/build/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ import FileList from '@/components/file-list/index.vue';
4646
import { reactive, ref } from 'vue';
4747
import { Rules } from '@/global/form-rules';
4848
import i18n from '@/lang';
49-
import { ElForm, ElMessage } from 'element-plus';
49+
import { ElForm } from 'element-plus';
5050
import { imageBuild } from '@/api/modules/container';
5151
import TaskLog from '@/components/task-log/index.vue';
5252
import { newUUID } from '@/utils/util';
53+
import { MsgSuccess } from '@/utils/message';
5354
5455
const drawerVisible = ref(false);
5556
const taskLogRef = ref();
@@ -95,7 +96,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
9596
form.taskID = newUUID();
9697
await imageBuild(form);
9798
openTaskLog(form.taskID);
98-
ElMessage.success(i18n.global.t('commons.msg.operationSuccess'));
99+
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
99100
});
100101
};
101102
const openTaskLog = (taskID: string) => {

0 commit comments

Comments
 (0)