Skip to content

Commit

Permalink
PLT-6379 revert to original value when canceled (mattermost#6319)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen authored and grundleborg committed May 4, 2017
1 parent 0cdcb43 commit 5daa462
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/channel_notifications_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 5daa462

Please sign in to comment.