Skip to content

Commit

Permalink
chore(accounts): removed role from view only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 2, 2019
1 parent 30cabd4 commit 1a39aa8
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/client/containers/Modals/EditAccountModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,19 @@ class EditAccountModal extends React.Component {
disabled={!edit}
/>
</div>
<div className='uk-margin-medium-bottom'>
<label className={'uk-form-label'}>Role</label>
<SingleSelect
items={roles}
width={'100'}
showTextbox={false}
defaultValue={user.role._id}
onSelectChange={e => this.onRoleSelectChange(e)}
disabled={!edit}
/>
</div>
{edit && (
<div className='uk-margin-medium-bottom'>
<label className={'uk-form-label'}>Role</label>
<SingleSelect
items={roles}
width={'100'}
showTextbox={false}
defaultValue={user.role._id}
onSelectChange={e => this.onRoleSelectChange(e)}
disabled={!edit}
/>
</div>
)}
<div className='uk-margin-medium-bottom'>
<label className='uk-form-label'>Groups</label>
<MultiSelect
Expand Down

0 comments on commit 1a39aa8

Please sign in to comment.