From 399c7cd88f58b6760edb2a8b58b117c931931d89 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 3 Jan 2017 15:14:37 -0500 Subject: [PATCH] add host status icons back on host list --- .../src/inventories/manage/hosts/hosts-list.controller.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awx/ui/client/src/inventories/manage/hosts/hosts-list.controller.js b/awx/ui/client/src/inventories/manage/hosts/hosts-list.controller.js index cee4abacbf..28089245f3 100644 --- a/awx/ui/client/src/inventories/manage/hosts/hosts-list.controller.js +++ b/awx/ui/client/src/inventories/manage/hosts/hosts-list.controller.js @@ -26,6 +26,12 @@ $scope[`${list.iterator}_dataset`] = hostsDataset.data; $scope[list.name] = $scope[`${list.iterator}_dataset`].results; + $scope.$watch(`${list.iterator}_dataset`, () => { + $scope.hosts + .forEach((host) => SetStatus({scope: $scope, + host: host})); + }); + // The ncy breadcrumb directive will look at this attribute when attempting to bind to the correct scope. // In this case, we don't want to incidentally bind to this scope when editing a host or a group. See: // https://github.com/ncuillery/angular-breadcrumb/issues/42 for a little more information on the