Skip to content

Commit 6a621f3

Browse files
committed
areLicensesEnabled
1 parent b3641d9 commit 6a621f3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

services/static-webserver/client/source/class/osparc/product/Utils.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,8 @@ qx.Class.define("osparc.product.Utils", {
269269
},
270270

271271
showS4LStore: function() {
272-
const platformName = osparc.store.StaticInfo.getInstance().getPlatformName();
273-
if (platformName !== "master") {
274-
return false;
275-
}
276-
return this.isS4LProduct();
272+
const licensesEnabled = osparc.store.StaticInfo.getInstance().areLicensesEnabled();
273+
return this.isS4LProduct() && licensesEnabled;
277274
},
278275

279276
getProductThumbUrl: function(asset = "Default.png") {

services/static-webserver/client/source/class/osparc/store/StaticInfo.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ qx.Class.define("osparc.store.StaticInfo", {
6969
return null;
7070
},
7171

72+
areLicensesEnabled: function() {
73+
const staticKey = "webserverLicenses";
74+
const licensesEnabled = this.getValue(staticKey);
75+
return Boolean(licensesEnabled);
76+
},
77+
7278
getTrashRetentionDays: function() {
7379
const staticKey = "webserverTrash";
7480
const wsStaticData = this.getValue(staticKey);

0 commit comments

Comments
 (0)