From 8edd002ec7ea5cf2f51dc43419a51785f51bdf78 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 2 Jan 2025 10:18:04 +0000 Subject: [PATCH] remove UI for "email notification type" - fixes #855 no live code looks at these settings, let's not confuse users pretending they can set also, no live code sends any of these notifications via email! maybe, after #718, we can revisit this --- .../frontend/src/pages/settings/email.vue | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/packages/frontend/src/pages/settings/email.vue b/packages/frontend/src/pages/settings/email.vue index d452f249b6..d90c86a4ec 100644 --- a/packages/frontend/src/pages/settings/email.vue +++ b/packages/frontend/src/pages/settings/email.vue @@ -19,28 +19,6 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.receiveAnnouncementFromInstance }} - - - - -
- - {{ i18n.ts._notification._types.mention }} - - - {{ i18n.ts._notification._types.reply }} - - - {{ i18n.ts._notification._types.quote }} - - - {{ i18n.ts._notification._types.follow }} - - - {{ i18n.ts._notification._types.receiveFollowRequest }} - -
-
{{ i18n.ts.emailNotSupported }} @@ -81,28 +59,6 @@ async function saveEmailAddress() { }); } -const emailNotification_mention = ref($i.emailNotificationTypes.includes('mention')); -const emailNotification_reply = ref($i.emailNotificationTypes.includes('reply')); -const emailNotification_quote = ref($i.emailNotificationTypes.includes('quote')); -const emailNotification_follow = ref($i.emailNotificationTypes.includes('follow')); -const emailNotification_receiveFollowRequest = ref($i.emailNotificationTypes.includes('receiveFollowRequest')); - -const saveNotificationSettings = () => { - misskeyApi('i/update', { - emailNotificationTypes: [ - ...[emailNotification_mention.value ? 'mention' : null], - ...[emailNotification_reply.value ? 'reply' : null], - ...[emailNotification_quote.value ? 'quote' : null], - ...[emailNotification_follow.value ? 'follow' : null], - ...[emailNotification_receiveFollowRequest.value ? 'receiveFollowRequest' : null], - ].filter(x => x != null), - }); -}; - -watch([emailNotification_mention, emailNotification_reply, emailNotification_quote, emailNotification_follow, emailNotification_receiveFollowRequest], () => { - saveNotificationSettings(); -}); - onMounted(() => { watch(emailAddress, () => { saveEmailAddress();