[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:
Devin Binnie 2023-07-10 08:33:32 -04:00 committed by GitHub
parent da3d5c73fe
commit 2abcdfe76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

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