Skip to content

Commit f95592c

Browse files
committed
isDevFeaturesEnabled
1 parent 64e4c8f commit f95592c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ qx.Class.define("osparc.store.StaticInfo", {
121121
return wsStaticData[key];
122122
}
123123
return null;
124-
}
124+
},
125+
126+
isDevFeaturesEnabled: function() {
127+
return this.getValue("webserverDevFeaturesEnabled");
128+
},
125129
}
126130
});

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ qx.Class.define("osparc.utils.DisabledPlugins", {
2929
VERSION_CONTROL: "WEBSERVER_VERSION_CONTROL",
3030
META_MODELING: "WEBSERVER_META_MODELING",
3131
LICENSES: "WEBSERVER_LICENSES",
32-
SHARE_WITH_EMAIL: "WEBSERVER_SHARE_WITH_EMAIL",
3332

3433
isExportDisabled: function() {
3534
return this.__isPluginDisabled(this.EXPORT);
@@ -54,10 +53,14 @@ qx.Class.define("osparc.utils.DisabledPlugins", {
5453
},
5554

5655
isShareWithEmailEnabled: function() {
57-
// return !this.__isPluginDisabled(this.SHARE_WITH_EMAIL);
58-
return new Promise(resolve => resolve(osparc.utils.Utils.isDevelopmentPlatform()));
56+
return osparc.store.StaticInfo.getInstance().isDevFeaturesEnabled();
5957
},
6058

59+
isMultiDownloadEnabled: function() {
60+
return osparc.store.StaticInfo.getInstance().isDevFeaturesEnabled();
61+
},
62+
63+
6164
isJobsEnabled: function() {
6265
if (osparc.utils.Utils.isDevelopmentPlatform() && osparc.product.Utils.isProduct("s4lacad")) {
6366
return true;

0 commit comments

Comments
 (0)