Added edgeAttributeKeys constants
This commit is contained in:
		
							parent
							
								
									48cced2d0c
								
							
						
					
					
						commit
						ac18f1aa95
					
				@ -402,6 +402,12 @@ export default angular.module('thingsboard.types', [])
 | 
				
			|||||||
                attributesDeleted: "ATTRIBUTES_DELETED",
 | 
					                attributesDeleted: "ATTRIBUTES_DELETED",
 | 
				
			||||||
                timeseriesUpdated: "TIMESERIES_UPDATED"
 | 
					                timeseriesUpdated: "TIMESERIES_UPDATED"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					            edgeAttributeKeys: {
 | 
				
			||||||
 | 
					                active: "active",
 | 
				
			||||||
 | 
					                lastConnectTime: "lastConnectTime",
 | 
				
			||||||
 | 
					                lastDisconnectTime: "lastDisconnectTime",
 | 
				
			||||||
 | 
					                queueStartTs: "queueStartTs"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            importEntityColumnType: {
 | 
					            importEntityColumnType: {
 | 
				
			||||||
                name: {
 | 
					                name: {
 | 
				
			||||||
                    name: 'import.column-type.name',
 | 
					                    name: 'import.column-type.name',
 | 
				
			||||||
 | 
				
			|||||||
@ -225,7 +225,7 @@ export default function EventTableDirective($compile, $templateCache, $rootScope
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        scope.loadEdgeInfo = function() {
 | 
					        scope.loadEdgeInfo = function() {
 | 
				
			||||||
            attributeService.getEntityAttributesValues(scope.entityType, scope.entityId, types.attributesScope.server.value,
 | 
					            attributeService.getEntityAttributesValues(scope.entityType, scope.entityId, types.attributesScope.server.value,
 | 
				
			||||||
                ["queueStartTs"], {})
 | 
					                types.edgeAttributeKeys.queueStartTs, {})
 | 
				
			||||||
                .then(function success(attributes) {
 | 
					                .then(function success(attributes) {
 | 
				
			||||||
                    scope.onUpdate(attributes);
 | 
					                    scope.onUpdate(attributes);
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user