ui: adjust repair warning prompt layout

This commit is contained in:
liushuyu 2022-03-29 23:20:37 -06:00
parent d194ed5dd5
commit a3f0d0f999
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
2 changed files with 5 additions and 4 deletions

View file

@ -23,7 +23,7 @@
"location_placeholder":"Enter a install path here",
"select":"Select",
"overwriting": "Overwriting",
"overwriting_warning": "Directory {path} already exists.<br>Are you sure you want to <b>overwrite</b> the contents inside?",
"overwriting_warning": "Directory <code>{path}</code> already exists.<br>Are you sure you want to <b>overwrite</b> the contents inside?",
"nothing_picked": "Nothing selected",
"nothing_picked_warning": "Please select at least one package to install!",
"options": "Install Options",
@ -57,7 +57,7 @@
"repair": "Repair",
"uninstall":"Uninstall",
"view_local_files": "View local files",
"prompt_repair": "<b>WARNING:</b> All the files under {path} will be <b>deleted</b> as part of the repair process! Do you wish to proceed?",
"prompt_repair": "<b>WARNING:</b> All the files under <code>{path}</code> will be <b>deleted</b> as part of the repair process!<br>Do you wish to proceed?",
"prompt_recover": "Installer data for {name} is corrupted.<br>A repair is required to restore the installation.",
"prompt":"Are you sure you want to uninstall {name}?",
"prompt_confirm":"Uninstall {name}"

View file

@ -61,9 +61,10 @@ export default {
this.$router.push('/packages')
},
repair_packages: function () {
this.$buefy.dialog.alert({
this.$buefy.dialog.confirm({
title: this.$t('modify.repair'),
message: this.$t('modify.prompt_recover', { name: this.$root.$data.attrs.name }),
message: this.$t('modify.prompt_repair', { path: this.$root.$data.metadata.install_path }),
cancelText: this.$t('cancel'),
confirmText: this.$t('continue'),
type: 'is-danger',
hasIcon: true,