Ask for app restart confirmation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user