Browse Source

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

pull/1365/head
ssongliu 1 year ago committed by GitHub
parent
commit
bc8d4cbb0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      frontend/src/components/upload/index.vue
  2. 2
      frontend/src/lang/modules/en.ts
  3. 2
      frontend/src/lang/modules/zh.ts

11
frontend/src/components/upload/index.vue

@ -280,7 +280,16 @@ const buttons = [
{
label: i18n.global.t('commons.button.recover'),
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);
});
}
},
},
{

2
frontend/src/lang/modules/en.ts

@ -1142,7 +1142,7 @@ const message = {
backupdate: 'Backup time',
restore: 'Restore',
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',
upgrade: 'upgrade',
versionSelect: 'Please select a version',

2
frontend/src/lang/modules/zh.ts

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

Loading…
Cancel
Save