mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Revamp isPopupVisible to AbstractViewPopup.hidden
This commit is contained in:
parent
d7ed6ce423
commit
686138ae15
5 changed files with 19 additions and 18 deletions
|
|
@ -4,6 +4,7 @@ import { inFocus, addObservablesTo, addComputablesTo, addSubscribablesTo } from
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { keyScope, Settings, leftPanelDisabled } from 'Common/Globals';
|
||||
import { ViewType } from 'Knoin/Knoin';
|
||||
//import { showScreenPopup } from 'Knoin/Knoin';
|
||||
|
||||
class AbstractView {
|
||||
constructor(templateID, type)
|
||||
|
|
@ -87,6 +88,14 @@ export class AbstractViewPopup extends AbstractView
|
|||
});
|
||||
}
|
||||
}
|
||||
/*
|
||||
AbstractViewPopup.show = function(params = []) {
|
||||
showScreenPopup(this, params);
|
||||
}
|
||||
*/
|
||||
AbstractViewPopup.hidden = function() {
|
||||
return !this.__vm || !this.__vm.modalVisibility();
|
||||
}
|
||||
|
||||
export class AbstractViewCenter extends AbstractView
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue