wip
This commit is contained in:
parent
37b26504e3
commit
8b2e862de0
|
@ -43,11 +43,15 @@ export default defineComponent({
|
|||
icon: faCog,
|
||||
text: this.$t('notificationSetting'),
|
||||
action: async () => {
|
||||
os.modal(await import('../notification-setting-window.vue'), {
|
||||
os.modal(await import('@/components/notification-setting-window.vue'), {
|
||||
includingTypes: this.column.includingTypes,
|
||||
}).$on('ok', async ({ includingTypes }) => {
|
||||
this.$set(this.column, 'includingTypes', includingTypes);
|
||||
this.$store.commit('deviceUser/updateDeckColumn', this.column);
|
||||
}).then(async (res) => {
|
||||
if (res == null) return;
|
||||
const { includingTypes } = res;
|
||||
this.$store.commit('deviceUser/updateDeckColumn', {
|
||||
...this.column,
|
||||
includingTypes: includingTypes
|
||||
});
|
||||
});
|
||||
}
|
||||
}];
|
||||
|
|
|
@ -54,7 +54,9 @@ export default defineComponent({
|
|||
async configure() {
|
||||
os.modal(await import('@/components/notification-setting-window.vue'), {
|
||||
includingTypes: this.props.includingTypes,
|
||||
}).then(async ({ includingTypes }) => {
|
||||
}).then(async (res) => {
|
||||
if (res == null) return;
|
||||
const { includingTypes } = res;
|
||||
this.props.includingTypes = includingTypes;
|
||||
this.save();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue