mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
some ko.computed() to addComputables()/addComputablesTo()
This commit is contained in:
parent
099560ca6a
commit
023c8f603b
9 changed files with 110 additions and 107 deletions
|
|
@ -23,8 +23,10 @@ class PluginPopupView extends AbstractViewPopup {
|
|||
|
||||
this.configures = ko.observableArray();
|
||||
|
||||
this.hasReadme = ko.computed(() => !!this.readme());
|
||||
this.hasConfiguration = ko.computed(() => 0 < this.configures().length);
|
||||
this.addComputables({
|
||||
hasReadme: () => !!this.readme(),
|
||||
hasConfiguration: () => 0 < this.configures().length
|
||||
});
|
||||
|
||||
this.bDisabeCloseOnEsc = true;
|
||||
this.sDefaultScope = Scope.All;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue