File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -142,16 +142,18 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
142142 } ,
143143
144144 __createFromResourceButton : function ( resourceData ) {
145- const menuButton = this . self ( ) . createMenuButton ( resourceData . icon , resourceData . title , resourceData . description ) ;
145+ const menuButton = this . self ( ) . createMenuButton ( null , resourceData . title , resourceData . description ) ;
146146 osparc . utils . Utils . setIdToWidget ( menuButton , resourceData . idToWidget ) ;
147147 return menuButton ;
148148 } ,
149149
150150 __addIcon : function ( menuButton , resourceInfo , resourceMetadata ) {
151151 let source = null ;
152152 if ( resourceInfo && "icon" in resourceInfo ) {
153+ // first the one set in the new_studies
153154 source = resourceInfo [ "icon" ] ;
154155 } else if ( resourceMetadata && "thumbnail" in resourceMetadata ) {
156+ // second the one from the resource
155157 source = resourceMetadata [ "thumbnail" ] ;
156158 }
157159
You can’t perform that action at this time.
0 commit comments