Drop popupVisibilityNames/viewModelName in favor of the new visiblePopups Set

This commit is contained in:
djmaze 2021-09-22 13:37:12 +02:00
parent 1d29a281b4
commit 11f69ef9e4
3 changed files with 17 additions and 21 deletions

View file

@ -8,18 +8,15 @@ import { ViewType } from 'Knoin/Knoin';
class AbstractView {
constructor(name, templateID, type)
{
this.viewModelName = 'View/' + name;
this.viewModelTemplateID = templateID;
this.viewModelPosition = type;
this.bDisabeCloseOnEsc = false;
this.sDefaultScope = Scope.None;
this.sCurrentScope = Scope.None;
this.viewModelVisible = false;
this.modalVisibility = ko.observable(false).extend({ rateLimit: 0 });
this.viewModelName = '';
this.viewModelDom = null;
}
@ -64,6 +61,7 @@ export class AbstractViewPopup extends AbstractView
if (name in Scope) {
this.sDefaultScope = Scope[name];
}
this.bDisabeCloseOnEsc = false;
}
/*
cancelCommand() {}