Skip to content

Commit 228469b

Browse files
committed
minors
1 parent 7e95307 commit 228469b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

services/static-webserver/client/source/class/osparc/navigation/UserMenu.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ qx.Class.define("osparc.navigation.UserMenu", {
112112
this.add(control);
113113
break;
114114
}
115-
case "license":
115+
case "license": {
116116
control = new qx.ui.menu.Button(this.tr("License"));
117117
osparc.utils.Utils.setIdToWidget(control, "userMenuLicenseBtn");
118118
const licenseURL = osparc.store.Support.getLicenseURL();
119119
control.addListener("execute", () => window.open(licenseURL));
120120
this.add(control);
121121
break;
122+
}
122123
case "tip-lite-button":
123124
control = new qx.ui.menu.Button(this.tr("Access Full TIP"));
124125
osparc.utils.Utils.setIdToWidget(control, "userMenuAccessTIPBtn");
@@ -237,7 +238,7 @@ qx.Class.define("osparc.navigation.UserMenu", {
237238
this.addSeparator();
238239

239240
this.__addAnnouncements();
240-
241+
241242
if (osparc.product.Utils.showS4LStore()) {
242243
this.getChildControl("market");
243244
}

services/static-webserver/client/source/class/osparc/vipMarket/MarketWindow.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ qx.Class.define("osparc.vipMarket.MarketWindow", {
3737

3838
statics: {
3939
openWindow: function() {
40-
const storeWindow = new osparc.vipMarket.MarketWindow();
41-
storeWindow.center();
42-
storeWindow.open();
43-
return storeWindow;
40+
if (osparc.product.Utils.showS4LStore()) {
41+
const storeWindow = new osparc.vipMarket.MarketWindow();
42+
storeWindow.center();
43+
storeWindow.open();
44+
return storeWindow;
45+
}
46+
return null;
4447
}
4548
},
4649

0 commit comments

Comments
 (0)