mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
use edit capability for showing copy on most views
This commit is contained in:
parent
16153daa14
commit
0ff94c63f2
@ -75,8 +75,7 @@ export default ['i18n', function(i18n) {
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy credential'),
|
||||
dataPlacement: 'top',
|
||||
// requires future api rbac changes
|
||||
//ngShow: 'credential.summary_fields.user_capabilities.copy'
|
||||
ngShow: 'credential.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
view: {
|
||||
ngClick: "editCredential(credential.id)",
|
||||
|
||||
@ -106,8 +106,7 @@ export default ['i18n', function(i18n) {
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy inventory'),
|
||||
dataPlacement: 'top',
|
||||
// requires future api rbac changes
|
||||
//ngShow: 'project.summary_fields.user_capabilities.copy'
|
||||
ngShow: 'inventory.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
view: {
|
||||
label: i18n._('View'),
|
||||
|
||||
@ -63,8 +63,7 @@ export default ['i18n', function(i18n){
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy inventory scruot'),
|
||||
dataPlacement: 'top',
|
||||
// requires future api rbac changes
|
||||
//ngShow: 'inventory_script.summary_fields.user_capabilities.copy'
|
||||
ngShow: 'inventory_script.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
view: {
|
||||
ngClick: "editCustomInv(inventory_script.id)",
|
||||
|
||||
@ -83,8 +83,7 @@ export default ['i18n', function(i18n){
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy notification'),
|
||||
dataPlacement: 'top',
|
||||
// requires future api rbac changes
|
||||
//ngShow: 'notification_template.summary_fields.user_capabilities.copy'
|
||||
ngShow: 'notification_template.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
view: {
|
||||
ngClick: "editNotification(notification_template.id)",
|
||||
|
||||
@ -106,8 +106,7 @@ export default ['i18n', function(i18n) {
|
||||
"class": 'btn-danger btn-xs',
|
||||
awToolTip: i18n._('Copy project'),
|
||||
dataPlacement: 'top',
|
||||
// requires future api rbac changes
|
||||
//ngShow: 'project.summary_fields.user_capabilities.copy'
|
||||
ngShow: 'project.summary_fields.user_capabilities.edit'
|
||||
},
|
||||
edit: {
|
||||
ngClick: "editProject(project.id)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user