Browse Source

For edgeEvents added Status of data received by Edge v.1.0

pull/2436/head
deaflynx 6 years ago
parent
commit
df62957780
  1. 4
      ui/src/app/event/event-row.directive.js

4
ui/src/app/event/event-row.directive.js

@ -26,7 +26,7 @@ import eventRowEdgeEventTemplate from './event-row-edge-event.tpl.html';
/* eslint-enable import/no-unresolved, import/default */
/*@ngInject*/
export default function EventRowDirective($compile, $templateCache, $mdDialog, $document, $translate, $log,
export default function EventRowDirective($compile, $templateCache, $mdDialog, $document, $translate,
types, toast, entityService, ruleChainService, userService, attributeService) {
var linker = function (scope, element, attrs) {
@ -148,9 +148,7 @@ export default function EventRowDirective($compile, $templateCache, $mdDialog, $
attributeService.getEntityAttributes(params.entityType, params.entityId, params.attributeScope, params.query,
function (attribute) {
if (attribute && attribute.data) {
$log.log("attribute", attribute);
lastDisconnectTime = attribute.data[0].lastUpdateTs;
$log.log("lastDisconnectTime", lastDisconnectTime, typeof(lastDisconnectTime));
}
});
}

Loading…
Cancel
Save