Skip to content

Commit 159a235

Browse files
committed
PIPELINE_ICON
1 parent d813333 commit 159a235

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
@@ -316,7 +316,7 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
316316
});
317317
});
318318

319-
this.self().setIcon(menuButton, buttonConfig["icon"] || "osparc/icons/diagram.png");
319+
this.self().setIcon(menuButton, buttonConfig["icon"] || osparc.data.model.StudyUI.PIPELINE_ICON);
320320
this.__addFromResourceButton(menuButton, buttonConfig["category"]);
321321
},
322322

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
@@ -95,6 +95,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
9595
TUTORIAL_TYPE: "TUTORIAL",
9696
HYPERTOOL_TYPE: "HYPERTOOL",
9797
HYPERTOOL_ICON: (iconSize = 22) => "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/refs/heads/main/app/icons/hypertool.png",
98+
PIPELINE_ICON: "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/refs/heads/main/app/icons/diagram.png",
9899
},
99100

100101
members: {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ qx.Class.define("osparc.study.Utils", {
439439
__guessIcon: function(studyData) {
440440
return new Promise(resolve => {
441441
if (studyData["ui"]["mode"] === "pipeline") {
442-
resolve("osparc/icons/diagram.png");
442+
resolve(osparc.data.model.StudyUI.PIPELINE_ICON);
443443
} else {
444444
const defaultIcon = osparc.dashboard.CardBase.PRODUCT_ICON;
445445
// the was to guess the TI type is to check the boot mode of the ti-postpro in the pipeline
@@ -454,7 +454,7 @@ qx.Class.define("osparc.study.Utils", {
454454
resolve(defaultIcon);
455455
});
456456
} else {
457-
resolve("osparc/icons/diagram.png");
457+
resolve(osparc.data.model.StudyUI.PIPELINE_ICON);
458458
}
459459
}
460460
});
Binary file not shown.

0 commit comments

Comments
 (0)