From 59fcf4b8ca16c99e04549b44c3a035fccab0ef14 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 21 Aug 2017 15:40:39 -0400 Subject: [PATCH] update which jobs are shown in recent jobs popover --- .../host-summary-popover.directive.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js index e180289984..7e6ae14f79 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js +++ b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js @@ -58,13 +58,15 @@ export default ['templateUrl', 'Wait', '$filter', '$compile', 'i18n', html += "\n"; data.results.forEach(function(row) { - html += "\n"; - html += "\n"; - html += "" + ($filter('longDate')(row.finished)) + ""; - html += "" + $filter('sanitize')(ellipsis(row.name)) + ""; - html += "\n"; + if ((scope.inventory.has_active_failures && row.status === 'failed') || (!scope.inventory.has_active_failures && row.status === 'successful')) { + html += "\n"; + html += "\n"; + html += "" + ($filter('longDate')(row.finished)) + ""; + html += "" + $filter('sanitize')(ellipsis(row.name)) + ""; + html += "\n"; + } }); html += "\n"; html += "\n";