This commit is contained in:
syuilo 2020-09-21 11:30:30 +09:00
parent 37b26504e3
commit 8b2e862de0
2 changed files with 11 additions and 5 deletions

View File

@ -43,11 +43,15 @@ export default defineComponent({
icon: faCog, icon: faCog,
text: this.$t('notificationSetting'), text: this.$t('notificationSetting'),
action: async () => { action: async () => {
os.modal(await import('../notification-setting-window.vue'), { os.modal(await import('@/components/notification-setting-window.vue'), {
includingTypes: this.column.includingTypes, includingTypes: this.column.includingTypes,
}).$on('ok', async ({ includingTypes }) => { }).then(async (res) => {
this.$set(this.column, 'includingTypes', includingTypes); if (res == null) return;
this.$store.commit('deviceUser/updateDeckColumn', this.column); const { includingTypes } = res;
this.$store.commit('deviceUser/updateDeckColumn', {
...this.column,
includingTypes: includingTypes
});
}); });
} }
}]; }];

View File

@ -54,7 +54,9 @@ export default defineComponent({
async configure() { async configure() {
os.modal(await import('@/components/notification-setting-window.vue'), { os.modal(await import('@/components/notification-setting-window.vue'), {
includingTypes: this.props.includingTypes, includingTypes: this.props.includingTypes,
}).then(async ({ includingTypes }) => { }).then(async (res) => {
if (res == null) return;
const { includingTypes } = res;
this.props.includingTypes = includingTypes; this.props.includingTypes = includingTypes;
this.save(); this.save();
}); });