mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 同步所有应用增加提示信息 (#2501)
This commit is contained in:
parent
9130d5d2c8
commit
23ed80298e
@ -1364,6 +1364,7 @@ const message = {
|
|||||||
downloadLogHelper1: 'All logs of {0} application are about to be downloaded. Do you want to continue? ',
|
downloadLogHelper1: 'All logs of {0} application are about to be downloaded. Do you want to continue? ',
|
||||||
downloadLogHelper2:
|
downloadLogHelper2:
|
||||||
'The latest {1} logs of {0} application are about to be downloaded. Do you want to continue? ',
|
'The latest {1} logs of {0} application are about to be downloaded. Do you want to continue? ',
|
||||||
|
syncAllAppHelper: 'All applications are about to be synchronized. Do you want to continue? ',
|
||||||
},
|
},
|
||||||
website: {
|
website: {
|
||||||
website: 'Website',
|
website: 'Website',
|
||||||
|
@ -1294,6 +1294,7 @@ const message = {
|
|||||||
openrestyDeleteHelper: '強制刪除 OpenResty 會刪除所有的網站,請確認風險後操作',
|
openrestyDeleteHelper: '強制刪除 OpenResty 會刪除所有的網站,請確認風險後操作',
|
||||||
downloadLogHelper1: '即將下載 {0} 套用所有日誌,是否繼續? ',
|
downloadLogHelper1: '即將下載 {0} 套用所有日誌,是否繼續? ',
|
||||||
downloadLogHelper2: '即將下載 {0} 應用最近 {1} 條日誌,是否繼續? ',
|
downloadLogHelper2: '即將下載 {0} 應用最近 {1} 條日誌,是否繼續? ',
|
||||||
|
syncAllAppHelper: '即將同步所有應用,是否繼續? ',
|
||||||
},
|
},
|
||||||
website: {
|
website: {
|
||||||
website: '網站',
|
website: '網站',
|
||||||
|
@ -1293,6 +1293,7 @@ const message = {
|
|||||||
openrestyDeleteHelper: '强制删除 OpenResty 会删除所有的网站,请确认风险之后操作',
|
openrestyDeleteHelper: '强制删除 OpenResty 会删除所有的网站,请确认风险之后操作',
|
||||||
downloadLogHelper1: '即将下载 {0} 应用所有日志,是否继续?',
|
downloadLogHelper1: '即将下载 {0} 应用所有日志,是否继续?',
|
||||||
downloadLogHelper2: '即将下载 {0} 应用最近 {1} 条日志,是否继续?',
|
downloadLogHelper2: '即将下载 {0} 应用最近 {1} 条日志,是否继续?',
|
||||||
|
syncAllAppHelper: '即将同步所有应用,是否继续?',
|
||||||
},
|
},
|
||||||
website: {
|
website: {
|
||||||
website: '网站',
|
website: '网站',
|
||||||
|
@ -371,15 +371,22 @@ const moreTag = ref('');
|
|||||||
const language = useI18n().locale.value;
|
const language = useI18n().locale.value;
|
||||||
|
|
||||||
const sync = () => {
|
const sync = () => {
|
||||||
syncLoading.value = true;
|
ElMessageBox.confirm(i18n.global.t('app.syncAllAppHelper'), i18n.global.t('app.sync'), {
|
||||||
SyncInstalledApp()
|
confirmButtonText: i18n.global.t('commons.button.confirm'),
|
||||||
.then(() => {
|
cancelButtonText: i18n.global.t('commons.button.cancel'),
|
||||||
MsgSuccess(i18n.global.t('app.syncSuccess'));
|
type: 'info',
|
||||||
search();
|
})
|
||||||
|
.then(async () => {
|
||||||
|
syncLoading.value = true;
|
||||||
|
try {
|
||||||
|
await SyncInstalledApp();
|
||||||
|
MsgSuccess(i18n.global.t('app.syncSuccess'));
|
||||||
|
search();
|
||||||
|
} finally {
|
||||||
|
syncLoading.value = false;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.catch(() => {});
|
||||||
syncLoading.value = false;
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeTag = (key: string) => {
|
const changeTag = (key: string) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user