Skip to content

Commit

Permalink
Override setting allowed, checkboxes not readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Sep 28, 2023
1 parent c335b88 commit bc968c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/pages/InvitationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,17 @@ export const InvitationForm = () => {

<Checkbox name={I18n.t("invitations.enforceEmailEquality")}
value={invitation.enforceEmailEquality || false}
onChange={e => setInvitation({...invitation, enforceEmailEquality: e.target.checked})}
info={I18n.t("invitations.enforceEmailEquality")}
readOnly={true}
readOnly={selectedRoles.some(role => !role.overrideSettingsAllowed )}
tooltip={I18n.t("tooltips.enforceEmailEqualityTooltip")}
/>

<Checkbox name={I18n.t("invitations.eduIDOnly")}
value={invitation.eduIDOnly || false}
onChange={e => setInvitation({...invitation, eduIDOnly: e.target.checked})}
info={I18n.t("invitations.eduIDOnly")}
readOnly={true}
readOnly={selectedRoles.some(role => !role.overrideSettingsAllowed )}
tooltip={I18n.t("tooltips.eduIDOnlyTooltip")}
/>

Expand Down
5 changes: 5 additions & 0 deletions client/src/tabs/Roles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ div.mod-roles {
align-items: center;
flex-direction: column;
margin-top: 25px;

@media (max-width: $medium) {
padding: 0 15px;
}

svg {
width: 240px;
height: auto
Expand Down

0 comments on commit bc968c6

Please sign in to comment.