diff --git a/awx/ui/static/js/smart-status/smart-status.controller.js b/awx/ui/static/js/smart-status/smart-status.controller.js index 12b2178406..00190b3151 100644 --- a/awx/ui/static/js/smart-status/smart-status.controller.js +++ b/awx/ui/static/js/smart-status/smart-status.controller.js @@ -1,6 +1,6 @@ export default ['$scope', function ($scope) { - var str = $scope.job_template.id+'_spark', + var str = $scope.job_template.id+'_smart', recentJobs = $scope.job_template.summary_fields.recent_jobs; $scope[str] = { id: $scope.job_template.id, diff --git a/awx/ui/static/js/smart-status/smart-status.directive.js b/awx/ui/static/js/smart-status/smart-status.directive.js index 89d87abfdb..7d291f5cc5 100644 --- a/awx/ui/static/js/smart-status/smart-status.directive.js +++ b/awx/ui/static/js/smart-status/smart-status.directive.js @@ -3,7 +3,8 @@ export default [ function() { return { restrict: 'E', link: function (scope){ - var str = scope.job_template.id+'_spark'; + var str = scope.job_template.id+'_smart'; + scope[str].formatter = function(sparklines, options, point){ var status; if(point.value === 1){ @@ -12,9 +13,9 @@ export default [ function() { else if(point.value === -1){ status = "Failed"; } - // else if(isNaN(point.value)){ - // status = "Running"; - // } + else if(isNaN(point.value)){ + status = "Running"; + } return "