Edge Downlinks refactored

This commit is contained in:
Artem Babak 2021-01-06 11:48:23 +02:00
parent f34420cfa8
commit 31b8a686f8
2 changed files with 5 additions and 5 deletions

View File

@ -405,7 +405,7 @@ export default angular.module('thingsboard.types', [])
widgetType: "WIDGET_TYPE",
adminSettings: "ADMIN_SETTINGS"
},
getEdgeStatus: {
edgeEventStatus: {
"DEPLOYED": {
name: "edge.deployed",
color: grey900

View File

@ -105,11 +105,11 @@ export default function EdgeDownlinksRowDirective($compile, $templateCache, $mdD
scope.updateStatus = function(downlinkCreatedTime) {
var status;
if (downlinkCreatedTime < scope.queueStartTs) {
status = $translate.instant(types.getEdgeStatus.DEPLOYED.name);
scope.statusColor = types.getEdgeStatus.DEPLOYED.color;
status = $translate.instant(types.edgeEventStatus.DEPLOYED.name);
scope.statusColor = types.edgeEventStatus.DEPLOYED.color;
} else {
status = $translate.instant(types.getEdgeStatus.PENDING.name);
scope.statusColor = types.getEdgeStatus.PENDING.color;
status = $translate.instant(types.edgeEventStatus.PENDING.name);
scope.statusColor = types.edgeEventStatus.PENDING.color;
}
return status;
}