Commit 31b8a686f88a18fc636bab977ec9b6db7f040bc0

Authored by Artem Babak
1 parent f34420cf

Edge Downlinks refactored

... ... @@ -405,7 +405,7 @@ export default angular.module('thingsboard.types', [])
405 405 widgetType: "WIDGET_TYPE",
406 406 adminSettings: "ADMIN_SETTINGS"
407 407 },
408   - getEdgeStatus: {
  408 + edgeEventStatus: {
409 409 "DEPLOYED": {
410 410 name: "edge.deployed",
411 411 color: grey900
... ...
... ... @@ -105,11 +105,11 @@ export default function EdgeDownlinksRowDirective($compile, $templateCache, $mdD
105 105 scope.updateStatus = function(downlinkCreatedTime) {
106 106 var status;
107 107 if (downlinkCreatedTime < scope.queueStartTs) {
108   - status = $translate.instant(types.getEdgeStatus.DEPLOYED.name);
109   - scope.statusColor = types.getEdgeStatus.DEPLOYED.color;
  108 + status = $translate.instant(types.edgeEventStatus.DEPLOYED.name);
  109 + scope.statusColor = types.edgeEventStatus.DEPLOYED.color;
110 110 } else {
111   - status = $translate.instant(types.getEdgeStatus.PENDING.name);
112   - scope.statusColor = types.getEdgeStatus.PENDING.color;
  111 + status = $translate.instant(types.edgeEventStatus.PENDING.name);
  112 + scope.statusColor = types.edgeEventStatus.PENDING.color;
113 113 }
114 114 return status;
115 115 }
... ...