Skip to content

Commit

Permalink
let ui-list not have an output if not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Aug 20, 2019
1 parent 1c7310b commit f2dd12f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 4 additions & 5 deletions node-red-ui-node-list/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-node-ui_list",
"version": "0.1.5",
"version": "0.1.6",
"description": "Node-RED Dashboard UI widget node for simple list",
"author": "Hiroyasu Nishiyama",
"contributors": [
Expand All @@ -15,14 +15,13 @@
},
"repository": {
"type": "git",
"url": "https://github.com/node-red/node-red-ui-nodes.git",
"path": "/tree/master/node-red-ui-node-list"
"url": "https://github.com/node-red/node-red-ui-nodes.git"
},
"homepage": "https://github.com/node-red/node-red-ui-nodes/tree/master/node-red-ui-node-list#README.md",
"keywords": [
"node-red",
"node-red-dashboard",
"list",
"dashboard"
"dashboard",
"list"
]
}
6 changes: 5 additions & 1 deletion node-red-ui-node-list/ui_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
height: {value: 0},
lineType: {value: "two" },
actionType: {value: "none" },
allowHTML: {value: false}
allowHTML: {value: false},
outputs: {value: 1}
},
inputs:1,
outputs:1,
Expand Down Expand Up @@ -113,6 +114,9 @@
$("#action-select").change();
},
oneditsave: function() {
var that = this;
if ($("#node-input-actionType").val() === "none") { that.outputs = 0; }
else { that.outputs = 1; }
},
oneditresize: function(size) {
}
Expand Down

0 comments on commit f2dd12f

Please sign in to comment.