From 250caab9578d3dc723d3ae95c9ef42779768f846 Mon Sep 17 00:00:00 2001 From: djmaze Date: Mon, 26 Oct 2020 13:43:56 +0100 Subject: [PATCH] Bugfix: create computable should be after property defines --- dev/View/User/Login.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dev/View/User/Login.js b/dev/View/User/Login.js index d8eca88d2..b77785d5e 100644 --- a/dev/View/User/Login.js +++ b/dev/View/User/Login.js @@ -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')); }