|
|
@ -142,7 +142,6 @@ export default function EventTableDirective($compile, $templateCache, $rootScope |
|
|
|
|
|
|
|
|
scope.$watch("entityId", function(newVal, prevVal) { |
|
|
scope.$watch("entityId", function(newVal, prevVal) { |
|
|
if (newVal && !angular.equals(newVal, prevVal)) { |
|
|
if (newVal && !angular.equals(newVal, prevVal)) { |
|
|
scope.loadEdgeInfo(); |
|
|
|
|
|
scope.resetFilter(); |
|
|
scope.resetFilter(); |
|
|
scope.reload(); |
|
|
scope.reload(); |
|
|
} |
|
|
} |
|
|
@ -221,7 +220,6 @@ export default function EventTableDirective($compile, $templateCache, $rootScope |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
scope.subscriptionId = null; |
|
|
scope.subscriptionId = null; |
|
|
scope.queueStartTs = 0; |
|
|
|
|
|
|
|
|
|
|
|
scope.loadEdgeInfo = function() { |
|
|
scope.loadEdgeInfo = function() { |
|
|
attributeService.getEntityAttributesValues( |
|
|
attributeService.getEntityAttributesValues( |
|
|
@ -229,11 +227,10 @@ export default function EventTableDirective($compile, $templateCache, $rootScope |
|
|
scope.entityId, |
|
|
scope.entityId, |
|
|
types.attributesScope.server.value, |
|
|
types.attributesScope.server.value, |
|
|
types.edgeAttributeKeys.queueStartTs, |
|
|
types.edgeAttributeKeys.queueStartTs, |
|
|
{}) |
|
|
null).then( |
|
|
.then(function success(attributes) { |
|
|
function success(attributes) { |
|
|
scope.onEdgeAttributesUpdate(attributes); |
|
|
attributes.length > 0 ? scope.onEdgeAttributesUpdate(attributes) : scope.queueStartTs = 0; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
scope.checkSubscription(); |
|
|
scope.checkSubscription(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|