diff --git a/app/components/table/actionbar/actions/actions.js b/app/components/table/actionbar/actions/actions.js index faf37fe..def0218 100644 --- a/app/components/table/actionbar/actions/actions.js +++ b/app/components/table/actionbar/actions/actions.js @@ -84,4 +84,4 @@ angular.module('bansho.table.actionbar') }); }); }; - }]) + }]); diff --git a/app/components/table/cell_host_status/cell_host_status.js b/app/components/table/cell_host_status/cell_host_status.js index 1588ba5..274f5c4 100644 --- a/app/components/table/cell_host_status/cell_host_status.js +++ b/app/components/table/cell_host_status/cell_host_status.js @@ -9,13 +9,13 @@ angular.module('bansho.table.cell_host_status', ['bansho.table']) if ($scope.entry.last_check === 0) { $scope.alert_level = "alert alert-info"; $scope.entry.host_status = "Pending"; - } else if ($scope.entry.state === 0) { + } else if ($scope.entry.host_state === 0) { $scope.alert_level = "alert alert-success"; $scope.entry.host_status = "Host UP"; } elseĀ { $scope.alert_level = "alert alert-danger"; - if ($scope.entry.childs.length !== 0) { + if ($scope.entry.parents.length === 0) { $scope.entry.host_status = "Host down"; } else { $scope.entry.host_status = "Network outage"; @@ -24,5 +24,5 @@ angular.module('bansho.table.cell_host_status', ['bansho.table']) }]) .run(['tableGlobalConfig', function (tableGlobalConfig) { - tableGlobalConfig.cellToFieldsMap.host_status = ['state', 'last_check', 'childs']; + tableGlobalConfig.cellToFieldsMap.host_status = ['state', 'last_check', 'parents']; }]);