wip
This commit is contained in:
parent
37b26504e3
commit
8b2e862de0
|
@ -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
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue