Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 21, 2024
2 parents 03d77ba + 19e907f commit d1c0b30
Showing 1 changed file with 30 additions and 36 deletions.
66 changes: 30 additions & 36 deletions src/client/src/pages/settings/admin/workgroupRoleSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,38 @@ export const WorkgroupRoleSettings: FC<WorkgroupRoleSettingsProps> = props => {
}}
/>
</Form.Field>
{
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Editor)}
label="EDITOR"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Editor);
}}
/>
</Form.Field>
}
{
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Controller)}
label="CONTROLLER"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Controller);
}}
/>
</Form.Field>
}
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Editor)}
label="EDITOR"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Editor);
}}
/>
</Form.Field>
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Controller)}
label="CONTROLLER"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Controller);
}}
/>
</Form.Field>
</Form.Group>
<Form.Group autoComplete="off" widths="equal">
{
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Validator)}
label="VALIDATOR"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Validator);
}}
/>
</Form.Field>
}
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Validator)}
label="VALIDATOR"
onChange={e => {
e.stopPropagation();
setRole(workgroupRoles, workgroup, Role.Validator);
}}
/>
</Form.Field>
<Form.Field>
<Checkbox
checked={workgroupRoles.some(x => x.role === Role.Publisher)}
Expand Down

0 comments on commit d1c0b30

Please sign in to comment.