[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
Этот коммит содержится в:
Devin Binnie
2023-07-10 08:33:32 -04:00
коммит произвёл GitHub
родитель da3d5c73fe
Коммит 2abcdfe76a
2 изменённых файлов: 6 добавлений и 2 удалений

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

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