add "Add Permissions" action to Teams form

This commit is contained in:
Leigh Johnson 2016-12-14 17:48:56 -05:00
parent 81d1524439
commit f6303d206b

View File

@ -150,7 +150,16 @@ export default
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