diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-17 18:00:42 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-17 18:00:42 +0900 |
| commit | 08b3662bb8510d45eb8edd48768a570907afcd44 (patch) | |
| tree | 4a464223220f60386e74c375edc1c9ba72885ec9 /packages | |
| parent | tweak MkTime.vue (diff) | |
| download | misskey-08b3662bb8510d45eb8edd48768a570907afcd44.tar.gz misskey-08b3662bb8510d45eb8edd48768a570907afcd44.tar.bz2 misskey-08b3662bb8510d45eb8edd48768a570907afcd44.zip | |
chore(frontend): tweak ui
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/pages/settings/notifications.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/settings/notifications.vue b/packages/frontend/src/pages/settings/notifications.vue index 2222381df6..7b09c6c900 100644 --- a/packages/frontend/src/pages/settings/notifications.vue +++ b/packages/frontend/src/pages/settings/notifications.vue @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only <FormSection first> <template #label>{{ i18n.ts.notificationRecieveConfig }}</template> <div class="_gaps_s"> - <MkFolder v-for="type in notificationTypes" :key="type"> + <MkFolder v-for="type in notificationTypes.filter(x => !nonConfigurableNotificationTypes.includes(x))" :key="type"> <template #label>{{ i18n.t('_notification._types.' + type) }}</template> <template #suffix> {{ @@ -68,6 +68,8 @@ import { definePageMetadata } from '@/scripts/page-metadata.js'; import MkPushNotificationAllowButton from '@/components/MkPushNotificationAllowButton.vue'; import { notificationTypes } from '@/const.js'; +const nonConfigurableNotificationTypes = ['note']; + let allowButton = $shallowRef<InstanceType<typeof MkPushNotificationAllowButton>>(); let pushRegistrationInServer = $computed(() => allowButton?.pushRegistrationInServer); let sendReadMessage = $computed(() => pushRegistrationInServer?.sendReadMessage || false); |