diff --git a/services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js b/services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js index 2d294bb0493f..187cffcbdbdc 100644 --- a/services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js +++ b/services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js @@ -25,6 +25,9 @@ qx.Class.define("osparc.auth.LoginPageSplit", { const layout = new qx.ui.layout.HBox(); this._setLayout(layout); + const loginPage = this.__loginPage = new osparc.auth.LoginWithDecorators(); + loginPage.addListener("done", e => this.fireDataEvent("done", e.getData())); + this.__rebuildLayout(); setTimeout(() => this.__resized(), 100); @@ -51,6 +54,8 @@ qx.Class.define("osparc.auth.LoginPageSplit", { }, members: { + __loginPage: null, + _getBackgroundImage: function() { throw new Error("Abstract method called!"); }, @@ -67,8 +72,7 @@ qx.Class.define("osparc.auth.LoginPageSplit", { __rebuildLayout: function() { this._removeAll(); - const loginPage = new osparc.auth.LoginWithDecorators(); - loginPage.addListener("done", e => this.fireDataEvent("done", e.getData())); + const loginPage = this.__loginPage; const container = new qx.ui.container.Scroll(); container.add(loginPage); const spacers = [