From 567977701011acf1f938626e4c1c9e16f6fdfcc4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 29 Dec 2020 21:08:16 +0900 Subject: [PATCH] Improve usability --- src/client/pages/settings/sidebar.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/client/pages/settings/sidebar.vue b/src/client/pages/settings/sidebar.vue index 174615e75d..51f2ba17e1 100644 --- a/src/client/pages/settings/sidebar.vue +++ b/src/client/pages/settings/sidebar.vue @@ -90,12 +90,25 @@ export default defineComponent({ save() { this.$store.set('menu', this.splited); + this.reloadAsk(); }, reset() { this.$store.reset('menu'); this.items = this.$store.state.menu.join('\n'); + this.reloadAsk(); }, + + async reloadAsk() { + const { canceled } = await os.dialog({ + type: 'info', + text: this.$ts.reloadToApplySetting, + showCancelButton: true + }); + if (canceled) return; + + location.reload(); + } }, });