1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Merge pull request #1320 from jakemcdermott/use-copy-capability-field

use copy capability field for copy action
This commit is contained in:
Jake McDermott 2018-04-10 14:34:12 -04:00 committed by GitHub
commit 55ae23a2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -75,7 +75,7 @@ export default ['i18n', function(i18n) {
"class": 'btn-danger btn-xs', "class": 'btn-danger btn-xs',
awToolTip: i18n._('Copy credential'), awToolTip: i18n._('Copy credential'),
dataPlacement: 'top', dataPlacement: 'top',
ngShow: 'credential.summary_fields.user_capabilities.edit' ngShow: 'credential.summary_fields.user_capabilities.copy'
}, },
view: { view: {
ngClick: "editCredential(credential.id)", ngClick: "editCredential(credential.id)",

View File

@ -113,7 +113,7 @@ export default ['i18n', function(i18n) {
"class": 'btn-danger btn-xs', "class": 'btn-danger btn-xs',
awToolTip: i18n._('Copy inventory'), awToolTip: i18n._('Copy inventory'),
dataPlacement: 'top', dataPlacement: 'top',
ngShow: '!inventory.pending_deletion && inventory.summary_fields.user_capabilities.edit' ngShow: '!inventory.pending_deletion && inventory.summary_fields.user_capabilities.copy'
}, },
view: { view: {
label: i18n._('View'), label: i18n._('View'),

View File

@ -63,7 +63,7 @@ export default ['i18n', function(i18n){
"class": 'btn-danger btn-xs', "class": 'btn-danger btn-xs',
awToolTip: i18n._('Copy inventory script'), awToolTip: i18n._('Copy inventory script'),
dataPlacement: 'top', dataPlacement: 'top',
ngShow: 'inventory_script.summary_fields.user_capabilities.edit' ngShow: 'inventory_script.summary_fields.user_capabilities.copy'
}, },
view: { view: {
ngClick: "editCustomInv(inventory_script.id)", ngClick: "editCustomInv(inventory_script.id)",

View File

@ -83,7 +83,7 @@ export default ['i18n', function(i18n){
"class": 'btn-danger btn-xs', "class": 'btn-danger btn-xs',
awToolTip: i18n._('Copy notification'), awToolTip: i18n._('Copy notification'),
dataPlacement: 'top', dataPlacement: 'top',
ngShow: 'notification_template.summary_fields.user_capabilities.edit' ngShow: 'notification_template.summary_fields.user_capabilities.copy'
}, },
view: { view: {
ngClick: "editNotification(notification_template.id)", ngClick: "editNotification(notification_template.id)",

View File

@ -106,7 +106,7 @@ export default ['i18n', function(i18n) {
"class": 'btn-danger btn-xs', "class": 'btn-danger btn-xs',
awToolTip: i18n._('Copy project'), awToolTip: i18n._('Copy project'),
dataPlacement: 'top', dataPlacement: 'top',
ngShow: 'project.summary_fields.user_capabilities.edit' ngShow: 'project.summary_fields.user_capabilities.copy'
}, },
edit: { edit: {
ngClick: "editProject(project.id)", ngClick: "editProject(project.id)",