this.addObservables() to addObservablesTo()

This commit is contained in:
the-djmaze 2022-10-30 22:19:52 +01:00
parent 839ebfb350
commit 7fac6ca9dd
30 changed files with 78 additions and 58 deletions

View file

@ -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)
});