Skip to content

Commit e16351b

Browse files
committed
more refactoring
1 parent d5dab0d commit e16351b

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ qx.Class.define("osparc.store.Products", {
127127
},
128128

129129
getSupportGroupId: function() {
130-
const statics = osparc.store.Store.getInstance().get("statics");
131-
if (statics["supportStandardGroupId"]) {
132-
return statics["supportStandardGroupId"];
133-
}
134-
return null;
130+
return osparc.store.StaticInfo.getValue("supportStandardGroupId");
135131
},
136132

137133
amIASupportUser: function() {

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,9 @@ qx.Class.define("osparc.utils.DisabledPlugins", {
6363
},
6464

6565
__isPluginDisabled: function(key) {
66-
const statics = osparc.store.Store.getInstance().get("statics");
67-
if (statics) {
68-
if ("pluginsDisabled" in statics) {
69-
return statics["pluginsDisabled"].includes(key);
70-
}
66+
const pluginsDisabled = osparc.store.StaticInfo.getValue("pluginsDisabled");
67+
if (pluginsDisabled) {
68+
return pluginsDisabled.includes(key);
7169
}
7270
return false;
7371
}

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ qx.Class.define("osparc.utils.LibVersions", {
126126
},
127127

128128
getBackendLibs: function() {
129-
const statics = osparc.store.Store.getInstance().get("statics");
130-
if ("thirdPartyReferences" in statics) {
131-
return statics["thirdPartyReferences"];
132-
}
133-
return [];
129+
return osparc.store.StaticInfo.getValue("thirdPartyReferences") || [];
134130
}
135131
}
136132
});

0 commit comments

Comments
 (0)