Skip to content

Commit bfb6ec2

Browse files
committed
A minimalistic spinning wheel
1 parent edcff82 commit bfb6ec2

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@ qx.Class.define("osparc.dashboard.GridButtonLoadMore", {
2929

3030
this._applyFetching(false);
3131

32+
// A minimalistic spinning wheel
33+
this.getChildControl("header").exclude();
3234
this.getChildControl("footer").exclude();
35+
this.set({
36+
backgroundColor: "transparent"
37+
});
3338
},
3439

3540
members: {
3641
_applyFetching: function(value) {
37-
const title = this.getChildControl("title");
38-
const desc = this.getChildControl("subtitle-text");
3942
this.setIcon(osparc.dashboard.CardBase.LOADING_ICON);
4043
if (value) {
41-
title.setValue(this.tr("Loading..."));
42-
desc.setValue("");
4344
this.getChildControl("icon").getChildControl("image").getContentElement()
4445
.addClass("rotate");
4546
} else {
46-
title.setValue(this.tr("Load More"));
47-
desc.setValue(this.tr("Click to load more").toString());
4847
this.getChildControl("icon").getChildControl("image").getContentElement()
4948
.removeClass("rotate");
5049
}

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@ qx.Class.define("osparc.dashboard.ListButtonLoadMore", {
3030
this.setPriority(osparc.dashboard.CardBase.CARD_PRIORITY.LOADER);
3131

3232
this._applyFetching(false);
33+
34+
this.set({
35+
backgroundColor: "transparent"
36+
});
3337
},
3438

3539
members: {
3640
_applyFetching: function(value) {
37-
const title = this.getChildControl("title");
38-
const desc = this.getChildControl("description");
41+
this.setIcon(osparc.dashboard.CardBase.LOADING_ICON);
3942
if (value) {
40-
title.setValue(this.tr("Loading..."));
41-
desc.setValue("");
42-
this.setIcon(osparc.dashboard.CardBase.LOADING_ICON);
4343
this.getChildControl("icon").getChildControl("image").getContentElement()
4444
.addClass("rotate");
4545
} else {
46-
title.setValue(this.tr("Load More"));
47-
desc.setValue(this.tr("Click to load more").toString());
48-
this.setIcon("@FontAwesome5Solid/paw/");
4946
this.getChildControl("icon").getChildControl("image").getContentElement()
5047
.removeClass("rotate");
5148
}

0 commit comments

Comments
 (0)