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",
|
widgetType: "WIDGET_TYPE",
|
||||||
adminSettings: "ADMIN_SETTINGS"
|
adminSettings: "ADMIN_SETTINGS"
|
||||||
},
|
},
|
||||||
getEdgeStatus: {
|
edgeEventStatus: {
|
||||||
"DEPLOYED": {
|
"DEPLOYED": {
|
||||||
name: "edge.deployed",
|
name: "edge.deployed",
|
||||||
color: grey900
|
color: grey900
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user