Bugfix: create computable should be after property defines

This commit is contained in:
djmaze 2020-10-26 13:43:56 +01:00
parent 3eb6ab1ef7
commit 250caab957

View file

@ -75,6 +75,13 @@ class LoginUserView extends AbstractViewNext {
this.emailErrorAnimation = 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({
formError:
() =>
@ -109,13 +116,6 @@ class LoginUserView extends AbstractViewNext {
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()) {
this.submitError(Settings.get('AdditionalLoginError'));
}