Skip to content

Commit 8685cbb

Browse files
committed
minor
1 parent a25dc3b commit 8685cbb

File tree

1 file changed

+3
-1
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)