mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat: Add node information synchronization steps (#7723)
This commit is contained in:
parent
78199a49ed
commit
bb250557a2
@ -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"
|
||||
|
@ -82,6 +82,7 @@ RestartAfterUpgrade: "升級後啟動服務"
|
||||
|
||||
#node create
|
||||
TaskAddNode: "添加節點"
|
||||
SyncAgentBaseInfo: "同步節點基礎數據"
|
||||
GenerateSSLInfo: "生成節點 SSL 信息"
|
||||
ConnInfoNotMatch: "連接信息不匹配";
|
||||
MakeAgentPackage: "生成節點安裝包"
|
||||
|
@ -83,6 +83,7 @@ RestartAfterUpgrade: "升级后启动服务"
|
||||
|
||||
#add node
|
||||
TaskAddNode: "添加节点"
|
||||
SyncAgentBaseInfo: "同步节点基础数据"
|
||||
GenerateSSLInfo: "生成节点 SSL 信息"
|
||||
ConnInfoNotMatch: "连接信息不匹配"
|
||||
MakeAgentPackage: "生成节点安装包"
|
||||
|
@ -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(() => {
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user