forked from mainmatter/ember-promise-modals
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have unsaved changes confirmation modals that open when a close of another modal (typically attached to a route) is attempted. When that occurs we want to stop the original modal from closing until the confirmation modal promise is complete. - when `closeModal()` is called, check if `beforeClose()` was passed in as an option, if it was then call it and await the result, if the result is `false` then the close is cancelled
- Loading branch information
1 parent
e302f7f
commit a36814e
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters