Skip to content

Commit 3b734e6

Browse files
committed
question mark
1 parent 33f78c4 commit 3b734e6

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ qx.Class.define("osparc.data.model.NodeUnknown", {
5151
}
5252
*/
5353

54-
return this.base(arguments);
54+
return null;
5555
}
5656
}
5757
});

services/static-webserver/client/source/class/osparc/workbench/NodeUI.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ qx.Class.define("osparc.workbench.NodeUI", {
245245
icon: type.icon + "14",
246246
toolTipText: type.label
247247
});
248+
} else if (this.getNode().isUnknown()) {
249+
control.set({
250+
icon: "@FontAwesome5Solid/question/14",
251+
toolTipText: "Unknown",
252+
});
248253
}
249254
this.getChildControl("middle-container").add(control);
250255
break;
@@ -514,8 +519,8 @@ qx.Class.define("osparc.workbench.NodeUI", {
514519
const width = this.self().FILE_NODE_WIDTH;
515520
this.__setNodeUIWidth(width);
516521

517-
const chipContainer = this.getChildControl("chips");
518-
chipContainer.exclude();
522+
const middleContainer = this.getChildControl("middle-container");
523+
middleContainer.exclude();
519524

520525
if (this.hasChildControl("progress")) {
521526
this.getChildControl("progress").exclude();
@@ -548,8 +553,8 @@ qx.Class.define("osparc.workbench.NodeUI", {
548553
const label = new qx.ui.basic.Label().set({
549554
font: "text-18"
550555
});
551-
const chipContainer = this.getChildControl("chips");
552-
chipContainer.add(label);
556+
const middleContainer = this.getChildControl("middle-container");
557+
middleContainer.add(label);
553558

554559
this.getNode().bind("outputs", label, "value", {
555560
converter: outputs => {
@@ -599,8 +604,8 @@ qx.Class.define("osparc.workbench.NodeUI", {
599604
paddingLeft: 5,
600605
font: "text-12"
601606
});
602-
const chipContainer = this.getChildControl("chips");
603-
chipContainer.add(linkLabel);
607+
const middleContainer = this.getChildControl("middle-container");
608+
middleContainer.add(linkLabel);
604609

605610
this.getNode().getPropsForm().addListener("linkFieldModified", () => this.__setProbeValue(linkLabel), this);
606611
this.__setProbeValue(linkLabel);
@@ -610,8 +615,8 @@ qx.Class.define("osparc.workbench.NodeUI", {
610615
const width = 150;
611616
this.__setNodeUIWidth(width);
612617

613-
const chipContainer = this.getChildControl("chips");
614-
chipContainer.add();
618+
this.setEnabled(false);
619+
615620
this.fireEvent("updateNodeDecorator");
616621
},
617622

0 commit comments

Comments
 (0)