mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
add "Add Permissions" action to Teams form
This commit is contained in:
@@ -150,7 +150,16 @@ export default
|
|||||||
ngShow: 'permission.summary_fields.user_capabilities.unattach'
|
ngShow: 'permission.summary_fields.user_capabilities.unattach'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//hideOnSuperuser: true // defunct with RBAC
|
actions: {
|
||||||
|
add: {
|
||||||
|
ngClick: "$state.go('.add')",
|
||||||
|
label: 'Add',
|
||||||
|
awToolTip: i18n._('Grant Permission'),
|
||||||
|
actionClass: 'btn List-buttonSubmit',
|
||||||
|
buttonContent: '+ ' + i18n._('ADD PERMISSIONS'),
|
||||||
|
ngShow: '(puser_obj.summary_fields.user_capabilities.edit || canAdd)'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};}]); //InventoryForm
|
};}]); //InventoryForm
|
||||||
|
|||||||
Reference in New Issue
Block a user