Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-39580 Switch misc modals to onExited #9294

Merged
merged 11 commits into from
Nov 1, 2021
Merged

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Oct 29, 2021

I'm renaming onHide to onExited so that it mirrors how it's supposed to be used with React-Bootstrap. GenericModal is one of those modals.

There shouldn't be any functional changes here, but there is some extra cleanup since is the last of these PRs.

Ticket Link

https://mattermost.atlassian.net/browse/MM-39580

Related Pull Requests

#9280
#9281
#9282
#9283
#9291
#9292

Release Note

NONE

@hmhealey hmhealey added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Oct 29, 2021
@@ -462,7 +457,6 @@ class CreateComment extends React.PureComponent<Props, State> {
}

handleNotifyAllConfirmation = () => {
this.props.closeModal(ModalIdentifiers.NOTIFY_CONFIRM_MODAL);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modal is now responsible for closing itself instead of CreateComment and CreatePost having to do it

Copy link
Member

@M-ZubairAhmed M-ZubairAhmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗 It looks good to me. Thank you

@hmhealey hmhealey added QA Deferred Agreement with QA that these changes will be tested post-merge 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Nov 1, 2021
@hmhealey hmhealey merged commit b857e24 into master Nov 1, 2021
@hmhealey hmhealey deleted the MM-39580-7_misc-modals branch November 1, 2021 16:04
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 1, 2021
iOSGeekster pushed a commit to iOSGeekster/mattermost-webapp that referenced this pull request Nov 2, 2021
* Switch AppsForm to use onExited

* Switch UserSettingsModal to use onExited

* Switch RemovedFromChannelModal to use onExited

* Switch SubmenuModal to use onExited

* Switch InteractiveDialog to use onExited

* Switch NotifyConfirmModal and ConfirmModalRedux to onExited

* Switch ResetStatusModal to onExited

* Switch QuickSwitchModal to onExited

* Remove unnecessary closeModal action from DeleteIntegrationLink

* Switch AboutBuildModal to onExited

* Switch MoreDirectChannels to onExited
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation QA Deferred Agreement with QA that these changes will be tested post-merge release-note-none
Projects
None yet
5 participants