From df8a7be75971861ea8840d22efb61bfb2f64c24b Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 3 Nov 2014 10:34:15 -0500 Subject: [PATCH] Job Templates list Added ngHide for copy icon to hide the icon when can_copy=false --- awx/ui/static/js/controllers/JobTemplates.js | 2 ++ awx/ui/static/js/lists/JobTemplates.js | 1 + 2 files changed, 3 insertions(+) diff --git a/awx/ui/static/js/controllers/JobTemplates.js b/awx/ui/static/js/controllers/JobTemplates.js index 01d0e843cb..c39bd1a130 100644 --- a/awx/ui/static/js/controllers/JobTemplates.js +++ b/awx/ui/static/js/controllers/JobTemplates.js @@ -61,6 +61,8 @@ function JobTemplatesList($scope, $rootScope, $location, $log, $routeParams, Res LoadBreadCrumbs(); + + $scope.showActivity = function () { Stream({ scope: $scope }); }; diff --git a/awx/ui/static/js/lists/JobTemplates.js b/awx/ui/static/js/lists/JobTemplates.js index a17314e4fa..5321770777 100644 --- a/awx/ui/static/js/lists/JobTemplates.js +++ b/awx/ui/static/js/lists/JobTemplates.js @@ -85,6 +85,7 @@ angular.module('JobTemplatesListDefinition', []) "class": 'btn-danger btn-xs', awToolTip: 'Copy template', dataPlacement: 'top', + ngHide: 'job_template.summary_fields.can_copy===false' } }