diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-29 11:29:54 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-29 11:29:54 +0900 |
| commit | b9da1415a50f6036350c6453d4a681b58bf17d1e (patch) | |
| tree | 06614d5be85f027890a969548ca816e6a36c8c78 /packages/frontend/src/pages/notifications.vue | |
| parent | .js (diff) | |
| download | misskey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.gz misskey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.bz2 misskey-b9da1415a50f6036350c6453d4a681b58bf17d1e.zip | |
feat: 通知の受信設定を強化
Diffstat (limited to 'packages/frontend/src/pages/notifications.vue')
| -rw-r--r-- | packages/frontend/src/pages/notifications.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/pages/notifications.vue b/packages/frontend/src/pages/notifications.vue index 3ae6319c7e..8d2475b085 100644 --- a/packages/frontend/src/pages/notifications.vue +++ b/packages/frontend/src/pages/notifications.vue @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only <template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template> <MkSpacer :contentMax="800"> <div v-if="tab === 'all'"> - <XNotifications class="notifications" :includeTypes="includeTypes"/> + <XNotifications class="notifications" :excludeTypes="excludeTypes"/> </div> <div v-else-if="tab === 'mentions'"> <MkNotes :pagination="mentionsPagination"/> @@ -27,10 +27,11 @@ import MkNotes from '@/components/MkNotes.vue'; import * as os from '@/os.js'; import { i18n } from '@/i18n.js'; import { definePageMetadata } from '@/scripts/page-metadata.js'; -import { notificationTypes } from '@/const'; +import { notificationTypes } from '@/const.js'; let tab = $ref('all'); let includeTypes = $ref<string[] | null>(null); +const excludeTypes = $computed(() => includeTypes ? notificationTypes.filter(t => !includeTypes.includes(t)) : null); const mentionsPagination = { endpoint: 'notes/mentions' as const, |