mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Return sensible name to display for Delay node Queue mode
This commit is contained in:
parent
a1830def8e
commit
348b642d25
@ -116,7 +116,10 @@
|
|||||||
} else if (this.pauseType == "random") {
|
} else if (this.pauseType == "random") {
|
||||||
return this.name || "random";
|
return this.name || "random";
|
||||||
}
|
}
|
||||||
return "foo";
|
else {
|
||||||
|
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
|
||||||
|
return this.name || "queue" +this.rate+" msg/"+ units;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
labelStyle: function() { // sets the class to apply to the label
|
labelStyle: function() { // sets the class to apply to the label
|
||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
|
Loading…
Reference in New Issue
Block a user