1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #1997 from Haokun-Chen/fix-dashboard-icon

fixed job list action icon on dashboard page for system auditor user
This commit is contained in:
Haokun Chen 2018-05-31 16:36:16 -04:00 committed by GitHub
commit b944f2d681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,8 @@ export default
can_start: template.summary_fields.user_capabilities.start,
name: template.name,
id: template.id,
type: template.type
type: template.type,
can_edit: template.summary_fields.user_capabilities.edit
}; });
}

View File

@ -33,7 +33,8 @@
<td class="List-actionsContainer">
<div class="List-actionButtonCell">
<button class="List-actionButton" ng-click="editTemplate(template)">
<i class="fa fa-pencil"></i>
<i class="fa fa-pencil" ng-show="template.can_edit"></i>
<i class="fa fa-search-plus" ng-show="!template.can_edit"></i>
</button>
<at-launch-template template="template"
ng-show="template.can_start">