Skip to content

Commit c07d35e

Browse files
committed
more fixes
1 parent a6a07f2 commit c07d35e

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
368368
thumbnailLayout.recheckSize();
369369
},
370370

371-
replaceIcon: function(newIcon) {
372-
const plusIcon = this.getChildControl("icon");
373-
plusIcon.exclude();
374-
375-
const bodyLayout = this.getChildControl("body");
376-
bodyLayout.add(newIcon, {flex: 1});
377-
},
378-
379371
/**
380372
* Event handler for the pointer over event.
381373
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ qx.Class.define("osparc.dashboard.GridButtonLoadMore", {
3939

4040
members: {
4141
_applyFetching: function(value) {
42-
this.setIcon(osparc.dashboard.CardBase.LOADING_ICON);
42+
this.setThumbnail(osparc.dashboard.CardBase.LOADING_ICON);
4343
if (value) {
44-
this.getChildControl("icon").getChildControl("image").getContentElement()
44+
this.getChildControl("thumbnail").getChildControl("image").getContentElement()
4545
.addClass("rotate");
4646
} else {
47-
this.getChildControl("icon").getChildControl("image").getContentElement()
47+
this.getChildControl("thumbnail").getChildControl("image").getContentElement()
4848
.removeClass("rotate");
4949
}
5050
this.setEnabled(!value);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ qx.Class.define("osparc.dashboard.GridButtonPlaceholder", {
105105
title.setValue(titleText);
106106
}
107107
if (icon) {
108-
this.setIcon(icon);
108+
this.setThumbnail(icon);
109109
}
110110

111111
const stateLabel = this.getChildControl("state-label");

0 commit comments

Comments
 (0)