Ask for app restart confirmation

This commit is contained in:
Johannes Zellner
2024-11-08 18:10:46 +01:00
parent 9f80578bab
commit fcccccaaae
3 changed files with 30 additions and 1 deletions
+9
View File
@@ -526,6 +526,15 @@ export default {
async onRestartApp() {
if (this.resourceType !== 'app') return;
const confirmed = await this.$refs.inputDialog.confirm({
message: this.$t('filemanager.toolbar.restartApp') + '?',
confirmStyle: 'danger',
confirmLabel: this.$t('main.dialog.yes'),
rejectLabel: this.$t('main.dialog.no')
});
if (!confirmed) return;
this.busyRestart = true;
let error, result;