This commit is contained in:
syuilo 2020-09-20 11:14:27 +09:00
parent c50342a19e
commit fe5171d1c2
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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 => {