diff --git a/webapp/components/user_settings/user_settings_notifications.jsx b/webapp/components/user_settings/user_settings_notifications.jsx
index 410ce1a4e1..6b07f59e2c 100644
--- a/webapp/components/user_settings/user_settings_notifications.jsx
+++ b/webapp/components/user_settings/user_settings_notifications.jsx
@@ -263,71 +263,89 @@ class NotificationsTab extends React.Component {
}
let inputs = [];
+ let extraInfo = null;
+ let submit = null;
- inputs.push(
-
-
- );
+ );
- const extraInfo = (
-
-
-
- );
+ extraInfo = (
+
+
+
+ );
+
+ submit = this.handleSubmit();
+ } else {
+ inputs.push(
+
+
+
+ );
+ }
return (
@@ -345,14 +363,21 @@ class NotificationsTab extends React.Component {
} else if (this.state.notifyPushLevel === 'none') {
describe = (
);
+ } else if (global.window.mm_config.SendPushNotifications === 'false') {
+ describe = (
+
+ );
} else {
describe = (
);
@@ -364,7 +389,7 @@ class NotificationsTab extends React.Component {
return (
@@ -911,10 +936,7 @@ class NotificationsTab extends React.Component {
);
}
- let pushNotificationSection;
- if (global.window.mm_config.SendPushNotifications === 'true') {
- pushNotificationSection = this.createPushNotificationSection();
- }
+ const pushNotificationSection = this.createPushNotificationSection();
return (
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json
index 19ff71f953..086868cbde 100644
--- a/webapp/i18n/en.json
+++ b/webapp/i18n/en.json
@@ -1393,6 +1393,8 @@
"user.settings.push_notification.info": "Notification alerts are pushed to your mobile device when there is activity in Mattermost.",
"user.settings.push_notification.off": "Off",
"user.settings.push_notification.onlyMentions": "For mentions and direct messages",
+ "user.settings.push_notification.disabled": "Disabled by system administrator",
+ "user.settings.push_notification.disabled_long": "Push notifications for mobile devices have been disabled by your System Administrator.",
"user.settings.security.close": "Close",
"user.settings.security.currentPassword": "Current Password",
"user.settings.security.currentPasswordError": "Please enter your current password",