mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-04 04:49:22 +08:00
feat: 应用导入恢复增加提示信息 (#1362)
This commit is contained in:
parent
0bb31f6caf
commit
bc8d4cbb0f
@ -280,7 +280,16 @@ const buttons = [
|
|||||||
{
|
{
|
||||||
label: i18n.global.t('commons.button.recover'),
|
label: i18n.global.t('commons.button.recover'),
|
||||||
click: (row: File.File) => {
|
click: (row: File.File) => {
|
||||||
onRecover(row);
|
if (type.value !== 'app') {
|
||||||
|
onRecover(row);
|
||||||
|
} else {
|
||||||
|
ElMessageBox.confirm(i18n.global.t('app.restoreWarn'), i18n.global.t('commons.button.recover'), {
|
||||||
|
confirmButtonText: i18n.global.t('commons.button.confirm'),
|
||||||
|
cancelButtonText: i18n.global.t('commons.button.cancel'),
|
||||||
|
}).then(async () => {
|
||||||
|
onRecover(row);
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1142,7 +1142,7 @@ const message = {
|
|||||||
backupdate: 'Backup time',
|
backupdate: 'Backup time',
|
||||||
restore: 'Restore',
|
restore: 'Restore',
|
||||||
restoreWarn:
|
restoreWarn:
|
||||||
'The restore operation will restart the application and replace the data. This operation cannot be rolled back. Do you want to continue?',
|
'The recovery operation will delete the current data of this application and perform a restart. This action is irreversible. Do you wish to continue?',
|
||||||
update: 'update',
|
update: 'update',
|
||||||
upgrade: 'upgrade',
|
upgrade: 'upgrade',
|
||||||
versionSelect: 'Please select a version',
|
versionSelect: 'Please select a version',
|
||||||
|
@ -1109,7 +1109,7 @@ const message = {
|
|||||||
backupPath: '文件路径',
|
backupPath: '文件路径',
|
||||||
backupdate: '备份时间',
|
backupdate: '备份时间',
|
||||||
restore: '恢复',
|
restore: '恢复',
|
||||||
restoreWarn: '恢复操作会重启应用,并替换数据,此操作不可回滚,是否继续?',
|
restoreWarn: '恢复操作将删除该应用当前数据并重启。此操作不可回滚,是否继续?',
|
||||||
update: '更新',
|
update: '更新',
|
||||||
upgrade: '升级',
|
upgrade: '升级',
|
||||||
versionSelect: '请选择版本',
|
versionSelect: '请选择版本',
|
||||||
|
Loading…
Reference in New Issue
Block a user