Skip to content

Commit

Permalink
Merge pull request #226 from entur/WTK-1832-personal-accounts
Browse files Browse the repository at this point in the history
Show Account type
  • Loading branch information
testower authored Dec 19, 2023
2 parents f05dcbc + 34a311b commit abc1092
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/modals/ModalEditUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import ResponsiblitySetList from './ResponsiblitySetList';
import UserRespSetPopover from './UserRespSetPopover';
import {
FormControl,
FormControlLabel,
Radio,
RadioGroup
} from '@material-ui/core';

const initialState = {
user: {
Expand Down Expand Up @@ -189,6 +195,29 @@ class ModalEditUser extends React.Component {
flexDirection: 'column'
}}
>
<FormControl>
<RadioGroup
disabled
defaultValue="personal_account"
value={
user.personal_account
? 'personal_account'
: 'notification_account'
}
onChange={(e, value) => this.handleChangeIsPersonalAccount(value)}
>
<FormControlLabel
value="personal_account"
control={<Radio />}
label="Personal account"
/>
<FormControlLabel
value="notification_account"
control={<Radio />}
label="Notification account"
/>
</RadioGroup>
</FormControl>
<TextField
disabled
hintText="Username"
Expand Down

0 comments on commit abc1092

Please sign in to comment.