diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-03 15:30:32 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-03 15:30:32 -0400 |
commit | 2a62b00d76f4de921fbebc321f0c0debd30d41d6 (patch) | |
tree | c9446d661f4d0f63bcd42ca0b4ee0606cfc4722b /web/react/components/channel_notifications.jsx | |
parent | e69e2db6b4724517a39c57e3689dec82608581ee (diff) | |
parent | 32eab0e7045889af5d567e9db1a847eb65f517d1 (diff) | |
download | chat-2a62b00d76f4de921fbebc321f0c0debd30d41d6.tar.gz chat-2a62b00d76f4de921fbebc321f0c0debd30d41d6.tar.bz2 chat-2a62b00d76f4de921fbebc321f0c0debd30d41d6.zip |
Merge pull request #587 from nickago/MM-1899
MM-1899 Added help text to channel notifications
Diffstat (limited to 'web/react/components/channel_notifications.jsx')
-rw-r--r-- | web/react/components/channel_notifications.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx index 173646597..83067240d 100644 --- a/web/react/components/channel_notifications.jsx +++ b/web/react/components/channel_notifications.jsx @@ -162,6 +162,13 @@ export default class ChannelNotifications extends React.Component { e.preventDefault(); }.bind(this); + let curChannel = ChannelStore.get(this.state.channelId); + let extraInfo = (<span>These settings will override the global notification settings</span>); + + if (curChannel && curChannel.display_name) { + extraInfo = (<span>These settings will override the global notification settings for the <b>{curChannel.display_name}</b> channel</span>); + } + return ( <SettingItemMax title='Send desktop notifications' @@ -169,6 +176,7 @@ export default class ChannelNotifications extends React.Component { submit={this.handleUpdate} server_error={serverError} updateSection={handleUpdateSection} + extraInfo={extraInfo} /> ); } |