Skip to content

Commit 0d451b9

Browse files
committed
icon -> thumbnail
1 parent 6949704 commit 0d451b9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonBase", {
5151
nullable: true
5252
},
5353

54-
icon: {
54+
thumbnail: {
5555
check: "String",
5656
init: null,
5757
nullable: true,
58-
apply: "_applyIcon",
58+
apply: "__applyThumbnail",
5959
},
6060

6161
resourceType: {
@@ -184,7 +184,7 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonBase", {
184184
flex: 1
185185
});
186186
break;
187-
case "icon": {
187+
case "thumbnail": {
188188
layout = this.getChildControl("body");
189189
const maxWidth = this.self().ITEM_WIDTH;
190190
control = new osparc.ui.basic.Thumbnail(null, maxWidth, 124);
@@ -269,9 +269,8 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonBase", {
269269
return layout;
270270
},
271271

272-
// overridden
273-
_applyIcon: function(value) {
274-
const image = this.getChildControl("icon").getChildControl("image");
272+
__applyThumbnail: function(value) {
273+
const image = this.getChildControl("thumbnail").getChildControl("image");
275274
if (
276275
value.includes("@FontAwesome5Solid/") ||
277276
value.includes("@MaterialIcons/")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonItem", {
161161
workspace.bind("workspaceId", this, "workspaceId");
162162
workspace.bind("name", this, "title");
163163
workspace.bind("description", this, "description");
164-
workspace.bind("thumbnail", this, "icon", {
164+
workspace.bind("thumbnail", this, "thumbnail", {
165165
converter: thumbnail => thumbnail ? thumbnail : osparc.store.Workspaces.iconPath(-1)
166166
});
167167
workspace.bind("accessRights", this, "accessRights");

0 commit comments

Comments
 (0)