From 3bf35affb13260df8d663ea4aa47d61f2f4f6a25 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 21 Oct 2023 21:36:11 -0400 Subject: [PATCH] fix: Enable management of notifications without SMTP configured closes #6046 --- app/scenes/Settings/Notifications.tsx | 76 +++++++++++++-------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/app/scenes/Settings/Notifications.tsx b/app/scenes/Settings/Notifications.tsx index 76287e63d..1c1d5bb5b 100644 --- a/app/scenes/Settings/Notifications.tsx +++ b/app/scenes/Settings/Notifications.tsx @@ -139,45 +139,15 @@ function Notifications() { {env.EMAIL_ENABLED ? ( - <> - - - - -

{t("Notifications")}

- - {options.map((option) => { - const setting = user.subscribedToEventType(option.event); - - return ( - - {option.icon} {option.title} - - } - name={option.event} - description={option.description} - > - - - ); - })} - + + + ) : ( @@ -187,6 +157,34 @@ function Notifications() { )} + +

{t("Notifications")}

+ + {options.map((option) => { + const setting = user.subscribedToEventType(option.event); + + return ( + + {option.icon} {option.title} + + } + name={option.event} + description={option.description} + > + + + ); + })} ); }