Browse Source

Added edgeAttributeKeys constants

pull/2436/head
deaflynx 6 years ago
parent
commit
ac18f1aa95
  1. 6
      ui/src/app/common/types.constant.js
  2. 2
      ui/src/app/event/event-table.directive.js

6
ui/src/app/common/types.constant.js

@ -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',

2
ui/src/app/event/event-table.directive.js

@ -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…
Cancel
Save