mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Centralize tryToClose() for all popups
This commit is contained in:
parent
fa15742edb
commit
c33dd8f856
5 changed files with 8 additions and 13 deletions
|
|
@ -314,10 +314,6 @@ export class ContactsPopupView extends AbstractViewPopup {
|
|||
}
|
||||
}
|
||||
|
||||
tryToClose() {
|
||||
(false === this.onClose()) || this.close();
|
||||
}
|
||||
|
||||
onClose() {
|
||||
const contact = this.contact();
|
||||
if (AskPopupView.hidden() && contact?.hasChanges()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue