mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Drop popupVisibilityNames/viewModelName in favor of the new visiblePopups Set
This commit is contained in:
parent
1d29a281b4
commit
11f69ef9e4
3 changed files with 17 additions and 21 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue