1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00

Improve usability

This commit is contained in:
syuilo 2020-12-29 21:08:16 +09:00
parent a70c24cd1e
commit 5679777010

View File

@ -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();
}
},
});
</script>