Skip to content

Commit 7f7d23d

Browse files
committed
minor
1 parent 5bb4fef commit 7f7d23d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

services/static-webserver/client/source/class/osparc/LogoutWindow.js renamed to services/static-webserver/client/source/class/osparc/TooSmallDialog.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
************************************************************************ */
1717

18-
qx.Class.define("osparc.LogoutWindow", {
18+
qx.Class.define("osparc.TooSmallDialog", {
1919
extend: osparc.ui.window.SingletonWindow,
2020

2121
construct: function() {
@@ -34,7 +34,7 @@ qx.Class.define("osparc.LogoutWindow", {
3434

3535
statics: {
3636
openWindow: function() {
37-
const orgsWindow = new osparc.LogoutWindow();
37+
const orgsWindow = new osparc.TooSmallDialog();
3838
orgsWindow.center();
3939
orgsWindow.open();
4040
return orgsWindow;
@@ -46,6 +46,7 @@ qx.Class.define("osparc.LogoutWindow", {
4646
const message = this.__createMessage();
4747
this.add(message);
4848

49+
// if the user is logged in, let them log out, the user menu might be unreachable
4950
const logoutButton = this.__createLogoutButton();
5051
this.add(logoutButton);
5152
},

services/static-webserver/client/source/class/osparc/WindowSizeTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ qx.Class.define("osparc.WindowSizeTracker", {
7777
}
7878

7979
if (width < this.self().MIN_WIDTH_LOGOUT) {
80-
osparc.LogoutWindow.openWindow();
80+
osparc.TooSmallDialog.openWindow();
8181
}
8282

8383
this.set({

0 commit comments

Comments
 (0)