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

This commit is contained in:
deaflynx 2020-07-11 00:34:00 +03:00
parent 35a17efc71
commit df62957780

View File

@ -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));
}
});
}