grafana/public/app/core/components/RolePicker
Alexander Zobnin 867ca5b59e
Access control: Team role picker (#43418)
* Refactor: move fetching from role picker to parent component

* Make built in role props optional

* Initial team role picker

* Add role picker to the teams list

* Optimize fetching roles

* Add pagination for the teams page

* Fix tests

* Hide roles if access control not enabled

* Fix test snapshots

* Refactor: use useAsync() hook

* Refactor: simplify input component

* Move api calls to separate file

* Refactor: use useAsync() hook for user role picker

* Tweak role picker input width

* Fix pagination

* Update test snapshots

* Use loading state from useAsync() hook

* Fix roles label if no roles assigned
2022-01-17 18:04:54 +03:00
..
api.ts Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
RolePicker.tsx Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
RolePickerInput.tsx Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
RolePickerMenu.tsx Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
TeamRolePicker.tsx Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
UserRolePicker.tsx Access control: Team role picker (#43418) 2022-01-17 18:04:54 +03:00
ValueContainer.tsx Add new role picker to admin/users page (#40631) 2021-11-17 18:22:40 +03:00