* Finds an open dialog by its id. * @param id ID to use when looking up the dialog.
(id: string)
| 218 | * @param id ID to use when looking up the dialog. |
| 219 | */ |
| 220 | getDialogById(id: string): MatDialogRef<any> | undefined { |
| 221 | return this.openDialogs.find(dialog => dialog.id === id); |
| 222 | } |
| 223 | |
| 224 | ngOnDestroy() { |
| 225 | // Only close the dialogs at this level on destroy |