mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
this.addObservables() to addObservablesTo()
This commit is contained in:
parent
839ebfb350
commit
7fac6ca9dd
30 changed files with 78 additions and 58 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import { addObservablesTo, addComputablesTo } from 'External/ko';
|
||||
|
||||
import { getNotification, i18n } from 'Common/Translator';
|
||||
import { arrayLength } from 'Common/Utils';
|
||||
|
|
@ -13,7 +14,7 @@ export class PluginPopupView extends AbstractViewPopup {
|
|||
constructor() {
|
||||
super('Plugin');
|
||||
|
||||
this.addObservables({
|
||||
addObservablesTo(this, {
|
||||
saveError: '',
|
||||
id: '',
|
||||
name: '',
|
||||
|
|
@ -22,7 +23,7 @@ export class PluginPopupView extends AbstractViewPopup {
|
|||
|
||||
this.config = ko.observableArray();
|
||||
|
||||
this.addComputables({
|
||||
addComputablesTo(this, {
|
||||
hasReadme: () => !!this.readme(),
|
||||
hasConfiguration: () => 0 < this.config().length
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue