Returns a promise that resolves to
truewhen a modal dialog has been handled, so either accepted or dismissed. Returns
falsefor dialogs that haven’t been handled yet.
dismissedfor dialogs that have been handled, or
absentfor those that haven’t been handled yet.