From 5de05aaa4c2a3951692eaa3cc7b6ba5dfe104082 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 8 Aug 2014 16:43:07 -0400 Subject: [PATCH] Job detail page 'Loading' message was not switching to 'No matching hosts' when completed search returns no results. --- awx/ui/static/js/helpers/JobDetail.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/JobDetail.js b/awx/ui/static/js/helpers/JobDetail.js index d60afc7347..5cc4ea0bba 100644 --- a/awx/ui/static/js/helpers/JobDetail.js +++ b/awx/ui/static/js/helpers/JobDetail.js @@ -968,8 +968,10 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge item: item }); } - scope.hostResultsLoading = false; }); + + scope.hostResultsLoading = false; + if (callback) { scope.$emit(callback); } @@ -1024,8 +1026,10 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge failed: event.failures, status: (event.failed) ? 'failed' : 'successful' }); - scope.hostSummariesLoading = false; }); + + scope.hostSummariesLoading = false; + if (callback) { scope.$emit(callback); }