Skip to content

Commit 4324322

Browse files
committed
Do not recreate login page
1 parent 6e5ae15 commit 4324322

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/static-webserver/client/source/class/osparc/auth/LoginPageSplit.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
2525
const layout = new qx.ui.layout.HBox();
2626
this._setLayout(layout);
2727

28+
const loginPage = this.__loginPage = new osparc.auth.LoginWithDecorators();
29+
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));
30+
2831
this.__rebuildLayout();
2932

3033
setTimeout(() => this.__resized(), 100);
@@ -67,8 +70,7 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
6770
__rebuildLayout: function() {
6871
this._removeAll();
6972

70-
const loginPage = new osparc.auth.LoginWithDecorators();
71-
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));
73+
const loginPage = this.__loginWithDecorators;
7274
const container = new qx.ui.container.Scroll();
7375
container.add(loginPage);
7476
const spacers = [

0 commit comments

Comments
 (0)