mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Cleanup unused login error animations
This commit is contained in:
parent
111455054e
commit
325f3c8eea
4 changed files with 12 additions and 23 deletions
|
|
@ -31,19 +31,16 @@ class LoginAdminView extends AbstractViewCenter {
|
|||
submitError: ''
|
||||
});
|
||||
|
||||
this.loginErrorAnimation = ko.observable(false).extend({ 'falseTimeout': 500 });
|
||||
this.passwordErrorAnimation = ko.observable(false).extend({ 'falseTimeout': 500 });
|
||||
|
||||
this.formError = ko.computed(() => this.loginErrorAnimation() || this.passwordErrorAnimation());
|
||||
this.formError = ko.observable(false).extend({ 'falseTimeout': 500 });
|
||||
|
||||
this.addSubscribables({
|
||||
login: () => this.loginError(false),
|
||||
|
||||
password: () => this.passwordError(false),
|
||||
|
||||
loginError: v => this.loginErrorAnimation(!!v),
|
||||
loginError: v => this.formError(!!v),
|
||||
|
||||
passwordError: v => this.passwordErrorAnimation(!!v)
|
||||
passwordError: v => this.formError(!!v)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue