Skip to content

Commit 71ab85d

Browse files
committed
more
1 parent 6daa51e commit 71ab85d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
6060
case "template":
6161
case "tutorial":
6262
case "hypertool":
63+
case "functionedTemplate":
6364
// when getting the latest study data, the debt information was lost
6465
if (osparc.study.Utils.isInDebt(this.__resourceData)) {
6566
const studyStore = osparc.store.Study.getInstance();
@@ -378,9 +379,12 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
378379
// removeAll
379380
osparc.utils.Utils.removeAllChildren(tabsView);
380381

381-
if (this.__resourceData["resourceType"] === "function") {
382+
if (this.__resourceData["resourceType"] === "functionedTemplate") {
382383
// for now, we only want the preview page
383-
// OM: careful here, the one coming from the MMUX services is marked as "function"
384+
this.__addPreviewPage();
385+
this.fireEvent("pagesAdded");
386+
return;
387+
} else if (this.__resourceData["resourceType"] === "function") {
384388
this.__addInfoPage();
385389
this.__addPreviewPage();
386390
this.fireEvent("pagesAdded");

0 commit comments

Comments
 (0)