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
@@ -187,6 +187,15 @@ export default {
this.$refs.schedulerMenu.toggle(event);
},
async onRestartApp() {
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;
await this.appModel.restart();
this.busyRestart = false;