From fe5171d1c26e1f5e4a136e42c4b4a0a5a26cb2e6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 20 Sep 2020 11:14:27 +0900 Subject: [PATCH] wip --- src/client/components/notification-setting-window.vue | 2 +- src/client/pages/my-settings/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/components/notification-setting-window.vue b/src/client/components/notification-setting-window.vue index cc00cf3bd5..9c9a5c57db 100644 --- a/src/client/components/notification-setting-window.vue +++ b/src/client/components/notification-setting-window.vue @@ -61,7 +61,7 @@ export default defineComponent({ this.useGlobalSetting = this.includingTypes === null && this.showGlobalToggle; for (const type of this.notificationTypes) { - Vue.set(this.typesMap, type, this.includingTypes === null || this.includingTypes.includes(type)); + this.typesMap[type] = this.includingTypes === null || this.includingTypes.includes(type); } }, diff --git a/src/client/pages/my-settings/index.vue b/src/client/pages/my-settings/index.vue index 25c1afa1f0..57e5f90f08 100644 --- a/src/client/pages/my-settings/index.vue +++ b/src/client/pages/my-settings/index.vue @@ -116,10 +116,10 @@ export default defineComponent({ async configure() { const includingTypes = notificationTypes.filter(x => !this.$store.state.i.mutingNotificationTypes.includes(x)); - os.modal(await import('@/components/notification-setting-window.vue'), { + os.modal(await import('@/components/notification-setting-window.vue').then(x => x.default), { includingTypes, showGlobalToggle: false, - }).$on('ok', async ({ includingTypes: value }: any) => { + }).then(async ({ includingTypes: value }: any) => { await os.api('i/update', { mutingNotificationTypes: notificationTypes.filter(x => !value.includes(x)), }).then(i => {