mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 00:38:04 +08:00
Bugfix: create computable should be after property defines
This commit is contained in:
parent
3eb6ab1ef7
commit
250caab957
1 changed files with 7 additions and 7 deletions
|
@ -75,6 +75,13 @@ class LoginUserView extends AbstractViewNext {
|
||||||
this.emailErrorAnimation = ko.observable(false).extend({ falseTimeout: 500 });
|
this.emailErrorAnimation = ko.observable(false).extend({ falseTimeout: 500 });
|
||||||
this.passwordErrorAnimation = ko.observable(false).extend({ falseTimeout: 500 });
|
this.passwordErrorAnimation = ko.observable(false).extend({ falseTimeout: 500 });
|
||||||
|
|
||||||
|
this.allowLanguagesOnLogin = !!Settings.get('AllowLanguagesOnLogin');
|
||||||
|
|
||||||
|
this.language = LanguageStore.language;
|
||||||
|
this.languages = LanguageStore.languages;
|
||||||
|
|
||||||
|
this.bSendLanguage = false;
|
||||||
|
|
||||||
this.addComputables({
|
this.addComputables({
|
||||||
formError:
|
formError:
|
||||||
() =>
|
() =>
|
||||||
|
@ -109,13 +116,6 @@ class LoginUserView extends AbstractViewNext {
|
||||||
signMeType: iValue => this.signMe(LoginSignMeType.DefaultOn === iValue)
|
signMeType: iValue => this.signMe(LoginSignMeType.DefaultOn === iValue)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.allowLanguagesOnLogin = !!Settings.get('AllowLanguagesOnLogin');
|
|
||||||
|
|
||||||
this.language = LanguageStore.language;
|
|
||||||
this.languages = LanguageStore.languages;
|
|
||||||
|
|
||||||
this.bSendLanguage = false;
|
|
||||||
|
|
||||||
if (Settings.get('AdditionalLoginError') && !this.submitError()) {
|
if (Settings.get('AdditionalLoginError') && !this.submitError()) {
|
||||||
this.submitError(Settings.get('AdditionalLoginError'));
|
this.submitError(Settings.get('AdditionalLoginError'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue