[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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
da3d5c73fe
Коммит
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;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user