mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add missing space to label in delay node
This commit is contained in:
parent
b2c7189ce4
commit
425b016d63
@ -109,16 +109,16 @@
|
|||||||
if (this.pauseType == "delay") {
|
if (this.pauseType == "delay") {
|
||||||
var units = this.timeoutUnits ? this.timeoutUnits.charAt(0) : "s";
|
var units = this.timeoutUnits ? this.timeoutUnits.charAt(0) : "s";
|
||||||
if (this.timeoutUnits == "milliseconds") { units = "ms"; }
|
if (this.timeoutUnits == "milliseconds") { units = "ms"; }
|
||||||
return this.name||this._("delay.label.delay")+" "+this.timeout+" " + units;
|
return this.name||this._("delay.label.delay")+" "+this.timeout+" "+units;
|
||||||
} else if (this.pauseType == "rate") {
|
} else if (this.pauseType == "rate") {
|
||||||
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
|
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
|
||||||
return this.name||this._("delay.label.limit")+" "+this.rate+" msg/"+ units;
|
return this.name||this._("delay.label.limit")+" "+this.rate+" msg/"+units;
|
||||||
} else if (this.pauseType == "random") {
|
} else if (this.pauseType == "random") {
|
||||||
return this.name || this._("delay.label.random");
|
return this.name || this._("delay.label.random");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
|
var units = this.rateUnits ? this.rateUnits.charAt(0) : "s";
|
||||||
return this.name || this._("delay.label.queue") +this.rate+" msg/"+ units;
|
return this.name || this._("delay.label.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
|
||||||
|
Loading…
Reference in New Issue
Block a user