feat: 应用安装增加端口放开提示 (#1492)

pull/1498/head
zhengkunwang223 1 year ago committed by GitHub
parent d4319fa55c
commit 2e5bf4202c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1242,6 +1242,8 @@ const message = {
allReadyInstalled: 'Installed', allReadyInstalled: 'Installed',
installHelper: 'Configuring image acceleration can solve the problem of image pull failure', installHelper: 'Configuring image acceleration can solve the problem of image pull failure',
upgradeHelper: 'The abnormal application needs to be synchronized to the normal state first', upgradeHelper: 'The abnormal application needs to be synchronized to the normal state first',
installWarn:
' Port external access is not enabled, and cannot be accessed through the external network IP:port. Do you want to continue?',
}, },
website: { website: {
website: 'Website', website: 'Website',

@ -1207,6 +1207,7 @@ const message = {
allReadyInstalled: '', allReadyInstalled: '',
installHelper: '', installHelper: '',
upgradeHelper: '', upgradeHelper: '',
installWarn: '访IP:访',
}, },
website: { website: {
website: '', website: '',

@ -149,7 +149,7 @@ const initData = () => ({
appDetailId: 0, appDetailId: 0,
params: form.value, params: form.value,
name: '', name: '',
advanced: false, advanced: true,
cpuQuota: 0, cpuQuota: 0,
memoryLimit: 0, memoryLimit: 0,
memoryUnit: 'MB', memoryUnit: 'MB',
@ -198,15 +198,20 @@ const submit = async (formEl: FormInstance | undefined) => {
if (req.memoryLimit < 0) { if (req.memoryLimit < 0) {
req.memoryLimit = 0; req.memoryLimit = 0;
} }
loading.value = true; ElMessageBox.confirm(i18n.global.t('app.installWarn'), i18n.global.t('app.checkTitle'), {
InstallApp(req) confirmButtonText: i18n.global.t('commons.button.confirm'),
.then(() => { cancelButtonText: i18n.global.t('commons.button.cancel'),
handleClose(); }).then(async () => {
router.push({ path: '/apps/installed' }); loading.value = true;
}) InstallApp(req)
.finally(() => { .then(() => {
loading.value = false; handleClose();
}); router.push({ path: '/apps/installed' });
})
.finally(() => {
loading.value = false;
});
});
}); });
}; };

Loading…
Cancel
Save