From 6f6ecd409d0ff7b5da9c2e3515e28d2a417b6cdf Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 15 Oct 2014 17:12:32 -0400 Subject: [PATCH] changed the actions for jobs in portal mode for portal mode, the jobs list should only have the launch option. i may need to make a new jobs list for the portal --- awx/ui/static/js/lists/JobTemplates.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/awx/ui/static/js/lists/JobTemplates.js b/awx/ui/static/js/lists/JobTemplates.js index 15ab3a46bf..83301dceea 100644 --- a/awx/ui/static/js/lists/JobTemplates.js +++ b/awx/ui/static/js/lists/JobTemplates.js @@ -38,13 +38,15 @@ angular.module('JobTemplatesListDefinition', []) mode: 'all', // One of: edit, select, all ngClick: 'addJobTemplate()', basePaths: ['job_templates'], - awToolTip: 'Create a new template' + awToolTip: 'Create a new template', + ngHide: 'portalMode===true' }, stream: { ngClick: "showActivity()", awToolTip: "View Activity Stream", icon: "icon-comments-alt", - mode: 'edit' + mode: 'edit', + ngHide: 'portalMode===true' } }, @@ -61,21 +63,24 @@ angular.module('JobTemplatesListDefinition', []) mode: 'all', ngHref: '#/job_templates/{{ job_template.id }}/schedules', awToolTip: 'Schedule future job template runs', - dataPlacement: 'top' + dataPlacement: 'top', + ngHide: 'portalMode===true' }, edit: { label: 'Edit', ngClick: "editJobTemplate(job_template.id)", awToolTip: 'Edit template', "class": 'btn-default btn-xs', - dataPlacement: 'top' + dataPlacement: 'top', + ngHide: 'portalMode===true' }, "delete": { label: 'Delete', ngClick: "deleteJobTemplate(job_template.id, job_template.name)", "class": 'btn-danger btn-xs', awToolTip: 'Delete template', - dataPlacement: 'top' + dataPlacement: 'top', + ngHide: 'portalMode===true' } } });