PLT-6379 revert to original value when canceled (#6319)

Этот коммит содержится в:
Corey Hulen
2017-05-04 02:30:22 -07:00
коммит произвёл George Goldberg
родитель ec5f40a423
Коммит 152bc14fcb

Просмотреть файл

@@ -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);