File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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" ) {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments