diff options
author | Corey Hulen <corey@hulen.com> | 2017-05-04 02:30:22 -0700 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-05-04 10:30:22 +0100 |
commit | 152bc14fcb7c276fbf053c9f70921ad7f8180167 (patch) | |
tree | 1e278de2f352896b4f1ccadfd0dbaa540a79ea4b /webapp | |
parent | ec5f40a4235369de7ffb45caaee822cbc1a7d8ba (diff) | |
download | chat-152bc14fcb7c276fbf053c9f70921ad7f8180167.tar.gz chat-152bc14fcb7c276fbf053c9f70921ad7f8180167.tar.bz2 chat-152bc14fcb7c276fbf053c9f70921ad7f8180167.zip |
PLT-6379 revert to original value when canceled (#6319)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/channel_notifications_modal.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/components/channel_notifications_modal.jsx b/webapp/components/channel_notifications_modal.jsx index 7af563e7c..d1fd81057 100644 --- a/webapp/components/channel_notifications_modal.jsx +++ b/webapp/components/channel_notifications_modal.jsx @@ -194,6 +194,9 @@ export default class ChannelNotificationsModal extends React.Component { const handleUpdateSection = function updateSection(e) { this.updateSection(''); + this.setState({ + notifyLevel: this.props.channelMember.notify_props.desktop + }); e.preventDefault(); }.bind(this); @@ -322,6 +325,9 @@ export default class ChannelNotificationsModal extends React.Component { const handleUpdateSection = function handleUpdateSection(e) { this.updateSection(''); + this.setState({ + unreadLevel: this.props.channelMember.notify_props.mark_unread + }); e.preventDefault(); }.bind(this); @@ -360,6 +366,9 @@ export default class ChannelNotificationsModal extends React.Component { const handleUpdateSection = function handleUpdateSection(e) { this.updateSection('markUnreadLevel'); + this.setState({ + unreadLevel: this.props.channelMember.notify_props.mark_unread + }); e.preventDefault(); }.bind(this); @@ -524,6 +533,9 @@ export default class ChannelNotificationsModal extends React.Component { const handleUpdateSection = function updateSection(e) { this.updateSection(''); + this.setState({ + pushLevel: this.props.channelMember.notify_props.push || 'default' + }); e.preventDefault(); }.bind(this); |