Skip to content

Commit b6ad2c6

Browse files
committed
renaming
1 parent 46787b6 commit b6ad2c6

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
5656
NEW_ICON: "@FontAwesome5Solid/plus/",
5757
LOADING_ICON: "@FontAwesome5Solid/circle-notch/",
5858
// Get the default thumbnail for each product else add the image and extension osparc.product.Utils.getProductThumbUrl(Thumbnail-01.png)
59-
PRODUCT_ICON: osparc.product.Utils.getProductThumbUrl(),
59+
PRODUCT_THUMBNAIL: osparc.product.Utils.getProductThumbUrl(),
6060

6161
CARD_PRIORITY: {
6262
NEW: 0,
@@ -489,7 +489,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
489489
trashedAt: resourceData.trashedAt ? new Date(resourceData.trashedAt) : null,
490490
trashedBy: resourceData.trashedBy || null,
491491
icon: ["study", "template"].includes(resourceData.resourceType) ? osparc.study.Utils.guessIcon(resourceData) : null,
492-
thumbnail: resourceData.thumbnail || this.self().PRODUCT_ICON,
492+
thumbnail: resourceData.thumbnail || this.self().PRODUCT_THUMBNAIL,
493493
state: resourceData.state ? resourceData.state : {},
494494
classifiers: resourceData.classifiers && resourceData.classifiers ? resourceData.classifiers : [],
495495
quality: resourceData.quality ? resourceData.quality : null,

services/static-webserver/client/source/class/osparc/desktop/credits/CreditsServiceListItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ qx.Class.define("osparc.desktop.credits.CreditsServiceListItem", {
3333
const name = this.getChildControl("title");
3434
const serviceMetadata = osparc.service.Utils.getLatest(serviceKey);
3535
if (serviceMetadata) {
36-
icon.setSource(serviceMetadata["thumbnail"] ? serviceMetadata["thumbnail"] : osparc.dashboard.CardBase.PRODUCT_ICON);
36+
icon.setSource(serviceMetadata["thumbnail"] ? serviceMetadata["thumbnail"] : osparc.dashboard.CardBase.PRODUCT_THUMBNAIL);
3737
name.setValue(serviceMetadata["name"]);
3838
} else {
39-
icon.setSource(osparc.dashboard.CardBase.PRODUCT_ICON);
39+
icon.setSource(osparc.dashboard.CardBase.PRODUCT_THUMBNAIL);
4040
const serviceName = serviceKey.split("/").pop();
4141
name.setValue(serviceName);
4242
}

services/static-webserver/client/source/class/osparc/desktop/organizations/ServicesList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ qx.Class.define("osparc.desktop.organizations.ServicesList", {
128128
const orgServiceCopy = osparc.utils.Utils.deepCloneObject(orgService);
129129
orgServiceCopy["orgId"] = groupId;
130130
if (orgServiceCopy["thumbnail"] === null) {
131-
orgServiceCopy["thumbnail"] = osparc.dashboard.CardBase.PRODUCT_ICON;
131+
orgServiceCopy["thumbnail"] = osparc.dashboard.CardBase.PRODUCT_THUMBNAIL;
132132
}
133133
servicesModel.append(qx.data.marshal.Json.createModel(orgServiceCopy));
134134
});

services/static-webserver/client/source/class/osparc/service/ServiceListItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ qx.Class.define("osparc.service.ServiceListItem", {
5454
LATEST: "latest",
5555
ITEM_WIDTH: 550,
5656
ITEM_HEIGHT: 35,
57-
SERVICE_ICON: osparc.product.Utils.getProductThumbUrl()
57+
SERVICE_THUMBNAIL: osparc.product.Utils.getProductThumbUrl()
5858
},
5959

6060
members: {
@@ -66,7 +66,7 @@ qx.Class.define("osparc.service.ServiceListItem", {
6666
if (service.getThumbnail()) {
6767
this.getChildControl("icon").setSource(service.getThumbnail());
6868
} else {
69-
this.getChildControl("icon").setSource(this.self().SERVICE_ICON);
69+
this.getChildControl("icon").setSource(this.self().SERVICE_THUMBNAIL);
7070
}
7171
service.bind("name", this.getChildControl("title"), "value");
7272

services/static-webserver/client/source/class/osparc/study/Utils.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ qx.Class.define("osparc.study.Utils", {
365365
if (osparc.product.Utils.isProduct("tis") || osparc.product.Utils.isProduct("tiplite")) {
366366
return this.__guessTIPIcon(studyData);
367367
}
368-
return osparc.dashboard.CardBase.PRODUCT_ICON;
368+
return osparc.dashboard.CardBase.PRODUCT_THUMBNAIL;
369369
},
370370

371371
__guessS4LIcon: function(studyData) {
@@ -378,8 +378,11 @@ qx.Class.define("osparc.study.Utils", {
378378
if (wbServices[0]["key"].includes("jupyter")) {
379379
return "https://images.seeklogo.com/logo-png/35/1/jupyter-logo-png_seeklogo-354673.png";
380380
}
381+
if (wbServices[0]["key"].includes("s4l-ui")) {
382+
return "osparc/icons/Sim4Life.ico";
383+
}
381384
}
382-
return "osparc/icons/Sim4Life.ico";
385+
return osparc.dashboard.CardBase.PRODUCT_THUMBNAIL;
383386
},
384387

385388
__guessTIPIcon: function(studyData) {
Binary file not shown.

0 commit comments

Comments
 (0)