Edge Downlinks refactored
This commit is contained in:
parent
f34420cfa8
commit
31b8a686f8
@ -405,7 +405,7 @@ export default angular.module('thingsboard.types', [])
|
||||
widgetType: "WIDGET_TYPE",
|
||||
adminSettings: "ADMIN_SETTINGS"
|
||||
},
|
||||
getEdgeStatus: {
|
||||
edgeEventStatus: {
|
||||
"DEPLOYED": {
|
||||
name: "edge.deployed",
|
||||
color: grey900
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user