Skip to content

Commit

Permalink
Show account type on edit user modal, but without possibility to mutate
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Dec 16, 2023
1 parent ada88ed commit 34a311b
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 34a311b

Please sign in to comment.