Revamp isPopupVisible to AbstractViewPopup.hidden

This commit is contained in:
the-djmaze 2022-02-04 09:49:55 +01:00
parent d7ed6ce423
commit 686138ae15
5 changed files with 19 additions and 18 deletions

View file

@ -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
{