Skip to content

Commit 932b64f

Browse files
committed
support types
1 parent d3afa52 commit 932b64f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
416416
});
417417

418418
// hypertools filter
419-
const button = new qx.ui.toolbar.RadioButton("Hypertools", osparc.data.model.StudyUI.HYPERTOOL_ICON(iconSize));
419+
const button = new qx.ui.toolbar.RadioButton("Hypertools", null);
420+
osparc.utils.Utils.replaceIconWithThumbnail(button, osparc.data.model.StudyUI.HYPERTOOL_ICON(), 20);
420421
button.appType = "hypertool";
421422
this.__appTypeButtons.push(button);
422423

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,16 @@ qx.Class.define("osparc.utils.Utils", {
101101
anonymous: true,
102102
decorator: "rounded",
103103
});
104-
// eslint-disable-next-line no-underscore-dangle
105-
widget._add(thumbnail, {column: 0});
104+
switch (widget.classname) {
105+
case "qx.ui.menu.Button":
106+
// eslint-disable-next-line no-underscore-dangle
107+
widget._add(thumbnail, {column: 0});
108+
break;
109+
case "qx.ui.toolbar.RadioButton":
110+
// eslint-disable-next-line no-underscore-dangle
111+
widget._addAt(thumbnail, 0);
112+
break;
113+
}
106114
}
107115
},
108116

0 commit comments

Comments
 (0)