fix typo in switch label, make function label consistent

This commit is contained in:
Dave Conway-Jones
2018-04-16 11:12:21 +01:00
parent 29e0b194dd
commit 9d22a86ec8
3 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,7 @@
outputs:1,
icon: "function.png",
label: function() {
return this.name;
return this.name||this._("function.function");
},
labelStyle: function() {
return this.name?"node_label_italic":"";