Skip to content

Commit f60c460

Browse files
authored
Fix input node's title (#771)
* fix #770
1 parent 05c746e commit f60c460

File tree

1 file changed

+5
-6
lines changed
  • services/web/client/source/class/qxapp/component/widget

1 file changed

+5
-6
lines changed

services/web/client/source/class/qxapp/component/widget/NodePorts.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,18 @@ qx.Class.define("qxapp.component.widget.NodePorts", {
3737
* @param isInputModel {Boolean} false for representing defaultInputs
3838
*/
3939
construct: function(node, isInputModel = true) {
40-
this._setLayout(new qx.ui.layout.Grow());
40+
this.setIsInputModel(isInputModel);
41+
this.setNode(node);
4142

42-
const label = new qx.ui.basic.Label();
43-
node.bind("label", label, "value");
43+
this._setLayout(new qx.ui.layout.Grow());
4444

4545
const nodeUIPorts = this.__nodeUIPorts = new qx.ui.container.Composite(new qx.ui.layout.VBox()).set({
4646
appearance: "node-ports"
4747
});
4848

49-
this.setIsInputModel(isInputModel);
50-
this.setNode(node);
49+
this.base(arguments, node.getLabel(), nodeUIPorts);
5150

52-
this.base(arguments, label.getValue(), nodeUIPorts);
51+
node.bind("label", this, "title");
5352
},
5453

5554
properties: {

0 commit comments

Comments
 (0)