Skip to content

Commit 5ed15df

Browse files
committed
isJobsEnabled
1 parent 948310d commit 5ed15df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ qx.Class.define("osparc.desktop.MainPage", {
6969
preloadPromises.push(osparc.store.Tags.getInstance().fetchTags());
7070
preloadPromises.push(osparc.store.Products.getInstance().fetchUiConfig());
7171
preloadPromises.push(osparc.store.PollTasks.getInstance().fetchTasks());
72-
if (osparc.utils.Utils.isDevelopmentPlatform()) {
72+
if (osparc.utils.DisabledPlugins.isJobsEnabled()) {
7373
preloadPromises.push(osparc.store.Jobs.getInstance().fetchJobs());
7474
}
7575
Promise.all(preloadPromises)

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ qx.Class.define("osparc.utils.DisabledPlugins", {
5252
return this.__isPluginDisabled(this.LICENSES);
5353
},
5454

55+
isJobsEnabled: function() {
56+
if (osparc.utils.Utils.isDevelopmentPlatform() && osparc.product.Utils.isProduct("s4lacad")) {
57+
return true;
58+
}
59+
return false;
60+
},
61+
5562
__isPluginDisabled: function(key) {
5663
const statics = osparc.store.Store.getInstance().get("statics");
5764
if (statics) {

0 commit comments

Comments
 (0)