Skip to content

Commit 0b7a2d1

Browse files
committed
showFunctions
1 parent 40a7672 commit 0b7a2d1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
6868
if (osparc.product.Utils.showPublicProjects()) {
6969
this._add(this.__createPublicProjects());
7070
}
71+
if (osparc.product.Utils.showFunctions()) {
72+
this._add(this.__createFunctions());
73+
}
7174
this._add(this.__createTrashBin());
7275
this._add(filtersSpacer);
7376
const scrollView = new qx.ui.container.Scroll();

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ qx.Class.define("osparc.product.Utils", {
310310
return true;
311311
},
312312

313+
showFunctions: function() {
314+
if (osparc.utils.DisabledPlugins.isFunctionsDisabled()) {
315+
return false;
316+
}
317+
318+
return [
319+
"osparc",
320+
"s4l",
321+
"s4lacad",
322+
].includes(osparc.product.Utils.getProductName());
323+
},
324+
313325
showQuality: function() {
314326
return this.isProduct("osparc");
315327
},

0 commit comments

Comments
 (0)