PLT-6379 revert to original value when canceled (#6319)
Этот коммит содержится в:
коммит произвёл
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);
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user