Skip to content

Commit 56aa58b

Browse files
committed
HYPERTOOL_ICON
1 parent cf5fd88 commit 56aa58b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
191191
osparc.store.Templates.getHypertools()
192192
.then(hypertools => {
193193
if (hypertools.length) {
194-
const hypertoolsMenuButton = this.self().createMenuButton("@FontAwesome5Solid/star/16", this.tr("Hypertools"));
194+
const hypertoolsMenuButton = this.self().createMenuButton(osparc.data.model.StudyUI.HYPERTOOL_ICON(16), this.tr("Hypertools"));
195195
this.addAt(hypertoolsMenuButton, this.__itemIdx);
196196
this.__itemIdx++;
197197

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

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

418418
// hypertools filter
419-
const button = new qx.ui.toolbar.RadioButton("Hypertools", "@FontAwesome5Solid/wrench/"+iconSize);
419+
const button = new qx.ui.toolbar.RadioButton("Hypertools", osparc.data.model.StudyUI.HYPERTOOL_ICON(iconSize));
420420
button.appType = "hypertool";
421421
this.__appTypeButtons.push(button);
422422

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
274274
});
275275

276276
// hypertools filter
277-
const hypertoolTypeButton = new qx.ui.menu.Button("Hypertools", "@FontAwesome5Solid/wrench/"+iconSize);
277+
const hypertoolTypeButton = new qx.ui.menu.Button("Hypertools", osparc.data.model.StudyUI.HYPERTOOL_ICON(iconSize));
278278
serviceTypeMenu.add(hypertoolTypeButton);
279279
hypertoolTypeButton.addListener("execute", () => this.__addChip("app-type", "hypertool", "Hypertools"), this);
280280
},

services/static-webserver/client/source/class/osparc/data/model/StudyUI.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
9494
TEMPLATE_TYPE: "TEMPLATE",
9595
TUTORIAL_TYPE: "TUTORIAL",
9696
HYPERTOOL_TYPE: "HYPERTOOL",
97+
HYPERTOOL_ICON: (iconSize = 22) => ("@FontAwesome5Solid/wrench/" + iconSize),
9798
},
9899

99100
members: {

0 commit comments

Comments
 (0)