Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(modal): allow checking if there are open modals #2740

Merged
merged 1 commit into from
Oct 5, 2018
Merged

feat(modal): allow checking if there are open modals #2740

merged 1 commit into from
Oct 5, 2018

Conversation

pkozlowski-opensource
Copy link
Member

Closes #1600

A tiny PR for a good start of the weekend!

Copy link
Member

@benouat benouat left a comment

Choose a reason for hiding this comment

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

LGTM, nonetheless I left a minor comment

/**
* Indicates if there are currently any open modal windows in the application.
*/
hasOpenWindows(): boolean { return this._modalStack.hasOpenWindows(); }
Copy link
Member

Choose a reason for hiding this comment

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

Some nitpicking here, but I would have named it hasOpenModals()
Even your commit message is using open modals and not windows

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, thnx, will change it to hasOpenModals()

Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

LGTM

@pkozlowski-opensource pkozlowski-opensource merged commit 7402ef3 into ng-bootstrap:master Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants