itizawa 5 лет назад
Родитель
Сommit
e5315d2906

+ 11 - 1
src/client/js/components/Admin/Notification/ManageGlobalNotification.jsx

@@ -96,7 +96,9 @@ class ManageGlobalNotification extends React.Component {
 
 
   render() {
-    const { t } = this.props;
+    const { t, appContainer } = this.props;
+    const { isMailerSetup } = appContainer.config;
+
     return (
       <React.Fragment>
 
@@ -179,7 +181,15 @@ class ManageGlobalNotification extends React.Component {
                     />
 
                   </div>
+
                   <p className="p-2">
+                    {!isMailerSetup && (
+                      <span
+                        className="form-text text-muted"
+                            //  eslint-disable-next-line react/no-danger
+                        dangerouslySetInnerHTML={{ __html: t('admin:user_management.invite_modal.mailer_setup_required') }}
+                      />
+                    )}
                     <b>Hint: </b>
                     <a href="https://ifttt.com/create" target="blank">{t('notification_setting.email.ifttt_link')}
                       <i className="icon-share-alt" />