Skip to content

Commit c6f21c7

Browse files
committed
minor
1 parent 682d4fa commit c6f21c7

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,28 @@ qx.Class.define("osparc.dashboard.FolderWithSharedIcon", {
2323

2424
this._setLayout(new qx.ui.layout.Canvas());
2525

26-
this._createChildControlImpl("folder-icon");
27-
this._createChildControlImpl("shared-icon");
26+
this.getChildControl("folder-icon");
27+
this.getChildControl("shared-icon");
2828
},
2929

3030
members: {
3131
_createChildControlImpl: function(id) {
3232
let control;
3333
switch (id) {
34-
case "folder-icon": {
35-
control = new qx.ui.basic.Image().set({
36-
source: "@FontAwesome5Solid/folder/26"
37-
});
38-
const iconContainer = new qx.ui.container.Composite(new qx.ui.layout.HBox().set({
34+
case "icon-container":
35+
control = new qx.ui.container.Composite(new qx.ui.layout.HBox().set({
3936
alignY: "middle"
4037
}));
41-
iconContainer.add(control);
42-
this._add(iconContainer, {
38+
this._add(control, {
4339
height: "100%"
4440
});
4541
break;
46-
}
42+
case "folder-icon":
43+
control = new qx.ui.basic.Image().set({
44+
source: "@FontAwesome5Solid/folder/26"
45+
});
46+
this.getChildControl("icon-container").add(control);
47+
break;
4748
case "shared-icon":
4849
control = new qx.ui.basic.Image().set({
4950
textColor: "strong-main",

0 commit comments

Comments
 (0)