mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	inject node label - show topic for timestamp mode if short
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user