From fd662b8864ac2205dc1cb2775dae889f1d935920 Mon Sep 17 00:00:00 2001 From: Jeff Sikes Date: Tue, 17 Jan 2023 06:57:24 -0600 Subject: [PATCH] feat: enhancements to profile account notifications (#1127) --- components/account/AccountHeader.vue | 27 ++++++++++++++++----------- locales/en-US.json | 3 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index aaed93b2..cc69486e 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -25,6 +25,10 @@ function getFieldIconTitle(fieldName: string) { return fieldName === 'Joined' ? t('account.joined') : fieldName } +function getNotificationIconTitle() { + return relationship?.notifying ? t('account.notifications_on_post_disable', { username: `@${account.username}` }) : t('account.notifications_on_post_enable', { username: `@${account.username}` }) +} + function previewHeader() { openMediaPreview([{ id: `${account.acct}:header`, @@ -100,17 +104,18 @@ const isNotifiedOnPost = $computed(() => !!relationship?.notifying)
- + + +