setEmailSetupPopup(false)}
+ open={true}>
+
+ In order for the mail notifications to work, you'll first need to
+ configure Mailgun.
+
+
+
+ )}
+ >
)
)
}
diff --git a/new-lamassu-admin/src/pages/Notifications/sections/Setup.js b/new-lamassu-admin/src/pages/Notifications/sections/Setup.js
index a56f2221..2e8d7583 100644
--- a/new-lamassu-admin/src/pages/Notifications/sections/Setup.js
+++ b/new-lamassu-admin/src/pages/Notifications/sections/Setup.js
@@ -85,7 +85,9 @@ const Setup = ({ wizard, forceDisable }) => {
data: rawData,
save: rawSave,
twilioAvailable,
- setSmsSetupPopup
+ setSmsSetupPopup,
+ mailgunAvailable,
+ setEmailSetupPopup
} = useContext(NotificationsCtx)
const namespaces = [
@@ -93,7 +95,11 @@ const Setup = ({ wizard, forceDisable }) => {
name: 'email',
forceDisable: forceDisable,
shouldUpperCase: false,
- onActivation: () => true
+ onActivation: () => {
+ if (mailgunAvailable) return true
+ setEmailSetupPopup(true)
+ return false
+ }
},
{
name: 'sms',