|
|
@@ -45,12 +45,14 @@ const ManageGlobalNotification = (props) => {
|
|
|
}
|
|
|
}, [globalNotificationId]);
|
|
|
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
if (props.globalNotificationId != null) {
|
|
|
retrieveGlobalNotificationData();
|
|
|
}
|
|
|
}, [props.globalNotificationId, retrieveGlobalNotificationData]);
|
|
|
|
|
|
+
|
|
|
const onChangeTriggerEvents = useCallback((triggerEvent) => {
|
|
|
let newTriggerEvents;
|
|
|
|
|
|
@@ -64,8 +66,8 @@ const ManageGlobalNotification = (props) => {
|
|
|
}
|
|
|
}, [triggerEvents]);
|
|
|
|
|
|
- const updateButtonClickedHandler = useCallback(async() => {
|
|
|
|
|
|
+ const updateButtonClickedHandler = useCallback(async() => {
|
|
|
const requestParams = {
|
|
|
triggerPath,
|
|
|
notifyType,
|
|
|
@@ -88,6 +90,7 @@ const ManageGlobalNotification = (props) => {
|
|
|
}
|
|
|
}, [emailToSend, globalNotificationId, notifyType, slackChannelToSend, triggerEvents, triggerPath]);
|
|
|
|
|
|
+
|
|
|
const { data: isMailerSetup } = useIsMailerSetup();
|
|
|
const { adminNotificationContainer } = props;
|
|
|
const { t } = useTranslation('admin');
|