From 31b8a686f88a18fc636bab977ec9b6db7f040bc0 Mon Sep 17 00:00:00 2001 From: Artem Babak Date: Wed, 6 Jan 2021 11:48:23 +0200 Subject: [PATCH] Edge Downlinks refactored --- ui/src/app/common/types.constant.js | 2 +- ui/src/app/edge/downlinks/edge-downlinks-row.directive.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/app/common/types.constant.js b/ui/src/app/common/types.constant.js index c4c110d1ee..375adad109 100644 --- a/ui/src/app/common/types.constant.js +++ b/ui/src/app/common/types.constant.js @@ -405,7 +405,7 @@ export default angular.module('thingsboard.types', []) widgetType: "WIDGET_TYPE", adminSettings: "ADMIN_SETTINGS" }, - getEdgeStatus: { + edgeEventStatus: { "DEPLOYED": { name: "edge.deployed", color: grey900 diff --git a/ui/src/app/edge/downlinks/edge-downlinks-row.directive.js b/ui/src/app/edge/downlinks/edge-downlinks-row.directive.js index d2cf7ee0a6..16015d12db 100644 --- a/ui/src/app/edge/downlinks/edge-downlinks-row.directive.js +++ b/ui/src/app/edge/downlinks/edge-downlinks-row.directive.js @@ -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; }