mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 12:15:37 +01:00
ui: warn about file deletion before a repair
This commit is contained in:
parent
a86bd209a8
commit
2103a8ec15
@ -57,6 +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_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}"
|
||||
|
@ -61,7 +61,14 @@ export default {
|
||||
this.$router.push('/packages')
|
||||
},
|
||||
repair_packages: function () {
|
||||
this.$router.push({ name: 'packages', params: { repair: true } })
|
||||
this.$buefy.dialog.alert({
|
||||
title: this.$t('modify.repair'),
|
||||
message: this.$t('modify.prompt_recover', { name: this.$root.$data.attrs.name }),
|
||||
confirmText: this.$t('continue'),
|
||||
type: 'is-danger',
|
||||
hasIcon: true,
|
||||
onConfirm: () => { this.$router.push({ name: 'packages', params: { repair: true } }) }
|
||||
})
|
||||
},
|
||||
prepare_uninstall: function () {
|
||||
this.$buefy.dialog.confirm({
|
||||
|
Loading…
Reference in New Issue
Block a user