mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +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,5 +1,6 @@
|
|||
import { fireEvent } from 'Common/Globals';
|
||||
import { getNotification } from 'Common/Translator';
|
||||
import { addObservablesTo, addSubscribablesTo } from 'External/ko';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
|
|
@ -10,7 +11,7 @@ export class AdminLoginView extends AbstractViewLogin {
|
|||
constructor() {
|
||||
super('AdminLogin');
|
||||
|
||||
this.addObservables({
|
||||
addObservablesTo(this, {
|
||||
login: '',
|
||||
password: '',
|
||||
totp: '',
|
||||
|
|
@ -22,7 +23,7 @@ export class AdminLoginView extends AbstractViewLogin {
|
|||
submitError: ''
|
||||
});
|
||||
|
||||
this.addSubscribables({
|
||||
addSubscribablesTo(this, {
|
||||
login: () => this.loginError(false),
|
||||
password: () => this.passwordError(false)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue