wip
This commit is contained in:
parent
c50342a19e
commit
fe5171d1c2
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue