Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Dec 5, 2024
1 parent 7e95307 commit 228469b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,14 @@ qx.Class.define("osparc.navigation.UserMenu", {
this.add(control);
break;
}
case "license":
case "license": {
control = new qx.ui.menu.Button(this.tr("License"));
osparc.utils.Utils.setIdToWidget(control, "userMenuLicenseBtn");
const licenseURL = osparc.store.Support.getLicenseURL();
control.addListener("execute", () => window.open(licenseURL));
this.add(control);
break;
}
case "tip-lite-button":
control = new qx.ui.menu.Button(this.tr("Access Full TIP"));
osparc.utils.Utils.setIdToWidget(control, "userMenuAccessTIPBtn");
Expand Down Expand Up @@ -237,7 +238,7 @@ qx.Class.define("osparc.navigation.UserMenu", {
this.addSeparator();

this.__addAnnouncements();

if (osparc.product.Utils.showS4LStore()) {
this.getChildControl("market");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ qx.Class.define("osparc.vipMarket.MarketWindow", {

statics: {
openWindow: function() {
const storeWindow = new osparc.vipMarket.MarketWindow();
storeWindow.center();
storeWindow.open();
return storeWindow;
if (osparc.product.Utils.showS4LStore()) {
const storeWindow = new osparc.vipMarket.MarketWindow();
storeWindow.center();
storeWindow.open();
return storeWindow;
}
return null;
}
},

Expand Down

0 comments on commit 228469b

Please sign in to comment.