Skip to content

Commit 904ae1d

Browse files
authored
🐛 [Frontend] Bugfix: Do not recreate login page after resize (#7118)
1 parent 638b592 commit 904ae1d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 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);
@@ -51,6 +54,8 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
5154
},
5255

5356
members: {
57+
__loginPage: null,
58+
5459
_getBackgroundImage: function() {
5560
throw new Error("Abstract method called!");
5661
},
@@ -67,8 +72,7 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
6772
__rebuildLayout: function() {
6873
this._removeAll();
6974

70-
const loginPage = new osparc.auth.LoginWithDecorators();
71-
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));
75+
const loginPage = this.__loginPage;
7276
const container = new qx.ui.container.Scroll();
7377
container.add(loginPage);
7478
const spacers = [

0 commit comments

Comments
 (0)