mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add default name to switch node (for when name not specified - to be more consistent with other nodes)
This commit is contained in:
parent
873974478a
commit
0a78838c71
@ -60,7 +60,7 @@
|
|||||||
outputs: 1,
|
outputs: 1,
|
||||||
icon: "switch.png",
|
icon: "switch.png",
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name;
|
return this.name||"switch";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user