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", widgetType: "WIDGET_TYPE",
adminSettings: "ADMIN_SETTINGS" adminSettings: "ADMIN_SETTINGS"
}, },
getEdgeStatus: { edgeEventStatus: {
"DEPLOYED": { "DEPLOYED": {
name: "edge.deployed", name: "edge.deployed",
color: grey900 color: grey900

View File

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