1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

add indicator for fire once on inject node

This commit is contained in:
Dave Conway-Jones 2016-11-17 13:56:37 +00:00
parent 8d5286703f
commit eeea8e530e

View File

@ -201,6 +201,11 @@
icon: "inject.png", icon: "inject.png",
label: function() { label: function() {
var suffix = ""; var suffix = "";
// if fire once then add small indication
if (this.once) {
suffix = " ¹";
}
// but replace with repeat one if set to repeat
if (this.repeat || this.crontab) { if (this.repeat || this.crontab) {
suffix = " ↻"; suffix = " ↻";
} }