mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
RBAC: Allow the basic role None as option of the org role selector (#76335)
This commit is contained in:
parent
790f878eca
commit
43928d38af
@ -13,8 +13,7 @@ interface Props {
|
||||
width?: number | 'auto';
|
||||
}
|
||||
|
||||
const basicRoles = Object.values(OrgRole).filter((r) => r !== OrgRole.None);
|
||||
const options = basicRoles.map((r) => ({ label: r, value: r }));
|
||||
const options = Object.keys(OrgRole).map((key) => ({ label: key, value: key }));
|
||||
|
||||
export function OrgRolePicker({ value, onChange, 'aria-label': ariaLabel, inputId, autoFocus, ...restProps }: Props) {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user