mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
this.addObservables() to addObservablesTo()
This commit is contained in:
parent
839ebfb350
commit
7fac6ca9dd
30 changed files with 78 additions and 58 deletions
|
|
@ -2,6 +2,7 @@ import { Notification } from 'Common/Enums';
|
|||
import { ClientSideKeyNameLastSignMe } from 'Common/EnumsUser';
|
||||
import { SettingsGet, fireEvent } from 'Common/Globals';
|
||||
import { getNotification, translatorReload, convertLangName } from 'Common/Translator';
|
||||
import { addObservablesTo, addComputablesTo, addSubscribablesTo } from 'External/ko';
|
||||
|
||||
import { LanguageStore } from 'Stores/Language';
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ export class LoginUserView extends AbstractViewLogin {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this.addObservables({
|
||||
addObservablesTo(this, {
|
||||
loadingDesc: SettingsGet('LoadingDescription'),
|
||||
|
||||
email: SettingsGet('DevEmail'),
|
||||
|
|
@ -50,14 +51,14 @@ export class LoginUserView extends AbstractViewLogin {
|
|||
|
||||
this.bSendLanguage = false;
|
||||
|
||||
this.addComputables({
|
||||
addComputablesTo(this, {
|
||||
|
||||
languageFullName: () => convertLangName(this.language()),
|
||||
|
||||
signMeVisibility: () => SignMeUnused !== this.signMeType()
|
||||
});
|
||||
|
||||
this.addSubscribables({
|
||||
addSubscribablesTo(this, {
|
||||
email: () => this.emailError(false),
|
||||
|
||||
password: () => this.passwordError(false),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue