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