feat: 应用导入恢复增加提示信息 (#1362)

This commit is contained in:
ssongliu 2023-06-13 10:46:11 +08:00 committed by GitHub
parent 0bb31f6caf
commit bc8d4cbb0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -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) => {
if (type.value !== 'app') {
onRecover(row); 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);
});
}
}, },
}, },
{ {

View File

@ -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',

View File

@ -1109,7 +1109,7 @@ const message = {
backupPath: '文件路径', backupPath: '文件路径',
backupdate: '备份时间', backupdate: '备份时间',
restore: '恢复', restore: '恢复',
restoreWarn: '恢复操作会重启应用,并替换数据,此操作不可回滚,是否继续?', restoreWarn: '恢复操作将删除该应用当前数据并重启此操作不可回滚是否继续?',
update: '更新', update: '更新',
upgrade: '升级', upgrade: '升级',
versionSelect: '请选择版本', versionSelect: '请选择版本',