mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
inject node label - show topic for timestamp mode if short
This commit is contained in:
parent
dcfaf1e2b9
commit
9704fb04d9
@ -219,7 +219,11 @@
|
||||
return this._("inject.inject")+suffix;
|
||||
}
|
||||
} else if (this.payloadType === 'date') {
|
||||
return this._("inject.timestamp")+suffix;
|
||||
if ((this.topic !== "") && (this.topic.length <= 16)) {
|
||||
return this.topic + ":" + this._("inject.timestamp")+suffix;
|
||||
} else {
|
||||
return this._("inject.timestamp")+suffix;
|
||||
}
|
||||
} else if (this.payloadType === 'flow' && this.payload.length < 19) {
|
||||
return 'flow.'+this.payload+suffix;
|
||||
} else if (this.payloadType === 'global' && this.payload.length < 17) {
|
||||
|
Loading…
Reference in New Issue
Block a user