mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +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,3 +1,5 @@
|
|||
import { addObservablesTo, addComputablesTo, addSubscribablesTo } from 'External/ko';
|
||||
|
||||
import { pInt, forEachObjectEntry } from 'Common/Utils';
|
||||
import { i18n, getNotification } from 'Common/Translator';
|
||||
|
||||
|
|
@ -33,8 +35,8 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
constructor() {
|
||||
super('Domain');
|
||||
|
||||
this.addObservables(this.getDefaults());
|
||||
this.addObservables({
|
||||
addObservablesTo(this, this.getDefaults());
|
||||
addObservablesTo(this, {
|
||||
edit: false,
|
||||
|
||||
saving: false,
|
||||
|
|
@ -53,7 +55,7 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
smtpHostFocus: false,
|
||||
});
|
||||
|
||||
this.addComputables({
|
||||
addComputablesTo(this, {
|
||||
headerText: () => {
|
||||
const name = this.name(),
|
||||
aliasName = this.aliasName();
|
||||
|
|
@ -96,7 +98,7 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
canBeSaved: () => !this.saving() && this.domainIsComputed()
|
||||
});
|
||||
|
||||
this.addSubscribables({
|
||||
addSubscribablesTo(this, {
|
||||
testingImapError: value => value || this.testingImapErrorDesc(''),
|
||||
testingSieveError: value => value || this.testingSieveErrorDesc(''),
|
||||
testingSmtpError: value => value || this.testingSmtpErrorDesc(''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue