From c4554b71d3b371e17dcc870e6247ceac707c526d Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 2 Mar 2017 23:12:06 +0000 Subject: [PATCH] Add link label value as portLabels --- nodes/core/core/60-link.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/60-link.html b/nodes/core/core/60-link.html index 2487beaa1..7b1fd2588 100644 --- a/nodes/core/core/60-link.html +++ b/nodes/core/core/60-link.html @@ -119,7 +119,7 @@ } return 0; }); - $.each(items, function(i, li){ + $.each(items, function(i, li) { nodeList.append(li); }); } @@ -249,7 +249,7 @@ if (i > -1) { n.links.splice(i,1); } - } else if (!nodeMap[id].old && nodeMap[id].new){ + } else if (!nodeMap[id].old && nodeMap[id].new) { // Added id i = n.links.indexOf(id); if (i === -1) { @@ -280,6 +280,9 @@ inputs:0, outputs:1, icon: "link-out.png", + outputLabels: function(i) { + return this.name||this._("link.linkIn"); + }, label: function() { return this.name||this._("link.linkIn"); }, @@ -307,6 +310,9 @@ inputs:1, outputs:0, icon: "link-out.png", + inputLabels: function(i) { + return this.name||this._("link.linkOut"); + }, label: function() { return this.name||this._("link.linkOut"); },