mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-53430] Don't stop the isDraftSubmitting
flow when the notification modal is popped (#23962)
* [MM-53430] Don't stop the `isDraftSubmitting` flow when the notification modal is popped * Reset to false if the modal closes without confirming
This commit is contained in:
parent
da3d5c73fe
commit
2abcdfe76a
@ -475,6 +475,9 @@ class AdvancedCreateComment extends React.PureComponent<Props, State> {
|
||||
channelTimezoneCount,
|
||||
memberNotifyCount,
|
||||
onConfirm: () => this.handleNotifyAllConfirmation(),
|
||||
onExited: () => {
|
||||
this.isDraftSubmitting = false;
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
@ -650,7 +653,6 @@ class AdvancedCreateComment extends React.PureComponent<Props, State> {
|
||||
|
||||
if (memberNotifyCount > 0) {
|
||||
this.showNotifyAllModal(mentions, channelTimezoneCount, memberNotifyCount);
|
||||
this.isDraftSubmitting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -585,6 +585,9 @@ class AdvancedCreatePost extends React.PureComponent<Props, State> {
|
||||
channelTimezoneCount,
|
||||
memberNotifyCount,
|
||||
onConfirm: () => this.handleNotifyAllConfirmation(),
|
||||
onExited: () => {
|
||||
this.isDraftSubmitting = false;
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
@ -689,7 +692,6 @@ class AdvancedCreatePost extends React.PureComponent<Props, State> {
|
||||
return;
|
||||
} else if (memberNotifyCount > 0) {
|
||||
this.showNotifyAllModal(mentions, channelTimezoneCount, memberNotifyCount);
|
||||
this.isDraftSubmitting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user