From 565c6f6e3e3066e6281713e46bdb6b014bb8aa4e Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Tue, 18 Jul 2017 15:49:51 -0400 Subject: [PATCH] Fixed host jobs summary links --- .../host-summary-popover.controller.js | 8 ++++++-- .../host-summary-popover.directive.js | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.controller.js b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.controller.js index b48b91f0b5..8dd449df82 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.controller.js @@ -1,5 +1,5 @@ -export default [ '$scope', 'Empty', 'Wait', 'GetBasePath', 'Rest', 'ProcessErrors', - function($scope, Empty, Wait, GetBasePath, Rest, ProcessErrors) { +export default [ '$scope', 'Empty', 'Wait', 'GetBasePath', 'Rest', 'ProcessErrors', '$state', + function($scope, Empty, Wait, GetBasePath, Rest, ProcessErrors, $state) { $scope.gatherRecentJobs = function(event) { if (!Empty($scope.inventory.id)) { @@ -22,5 +22,9 @@ export default [ '$scope', 'Empty', 'Wait', 'GetBasePath', 'Rest', 'ProcessError } }; + $scope.viewJob = function(jobId) { + $state.go('jobResult', {id: jobId}); + }; + } ]; 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 17a10e0f93..ac0334cc64 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 @@ -59,10 +59,10 @@ export default ['templateUrl', 'Wait', '$filter', '$compile', 'i18n', data.results.forEach(function(row) { html += "\n"; - html += "\n"; html += "" + ($filter('longDate')(row.finished)) + ""; - html += "" + $filter('sanitize')(ellipsis(row.name)) + ""; html += "\n"; });