Skip to content

Commit

Permalink
fix(settings): fix filter text and dropdown label in new role selector
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverDudgeon committed Jun 29, 2023
1 parent f551659 commit baa1d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/PermissionLevelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface PermissionLevelSelectProps {

export const PermissionLevelSelect = ({ value, onChange }: PermissionLevelSelectProps) => {
return (
<TextField select label="Version" size="small" value={value} onChange={onChange}>
<TextField select label="Role" size="small" value={value} onChange={onChange}>
{PERMISSION_LEVELS.map((level) => (
<MenuItem key={level} value={level}>
{capitalise(level === "none" ? "any" : level)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ export const UserSettingsContent = () => {
<UserBootstrapper />

<PageSection level={2} title="Organisation and Unit">
<Typography gutterBottom variant="body2">
Filter the projects you are able to see by the organisation and unit
</Typography>

<Box alignItems="baseline" display="flex" gap={1} marginBottom={1}>
<Typography>
<em>{user.username}</em> is
Filter projects for user <em>{user.username}</em> where role is
</Typography>
<PermissionLevelSelect
value={permissionLevel}
Expand Down

0 comments on commit baa1d19

Please sign in to comment.