Skip to content

Commit a6cf753

Browse files
committed
isLicensesEnabled
1 parent 63f7361 commit a6cf753

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ qx.Class.define("osparc.product.Utils", {
335335
},
336336

337337
showS4LStore: function() {
338-
const licensesEnabled = osparc.store.StaticInfo.getInstance().areLicensesEnabled();
338+
const licensesEnabled = osparc.utils.DisabledPlugins.isLicensesEnabled();
339339
return this.isS4LProduct() && licensesEnabled;
340340
},
341341

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

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

72-
areLicensesEnabled: function() {
73-
const isDisabled = osparc.utils.DisabledPlugins.isLicensesDisabled();
74-
return !isDisabled;
75-
},
76-
7772
getTrashRetentionDays: function() {
7873
const staticKey = "webserverTrash";
7974
const wsStaticData = this.getValue(staticKey);

services/static-webserver/client/source/class/osparc/utils/DisabledPlugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ qx.Class.define("osparc.utils.DisabledPlugins", {
5454
return this.__isPluginDisabled(this.FUNCTIONS);
5555
},
5656

57-
isLicensesDisabled: function() {
58-
return this.__isPluginDisabled(this.LICENSES);
57+
isLicensesEnabled: function() {
58+
return !this.__isPluginDisabled(this.LICENSES);
5959
},
6060

6161
isRTCEnabled: function() {

0 commit comments

Comments
 (0)