File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments