diff options
Diffstat (limited to 'src/components/settings/user/EditUserForm.js')
-rw-r--r-- | src/components/settings/user/EditUserForm.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/settings/user/EditUserForm.js b/src/components/settings/user/EditUserForm.js index f36887fc2..b825f844a 100644 --- a/src/components/settings/user/EditUserForm.js +++ b/src/components/settings/user/EditUserForm.js | |||
@@ -39,13 +39,13 @@ const messages = defineMessages({ | |||
39 | }, | 39 | }, |
40 | }); | 40 | }); |
41 | 41 | ||
42 | @observer | 42 | export default @observer class EditServiceForm extends Component { |
43 | export default class EditServiceForm extends Component { | ||
44 | static propTypes = { | 43 | static propTypes = { |
45 | status: MobxPropTypes.observableArray.isRequired, | 44 | status: MobxPropTypes.observableArray.isRequired, |
46 | form: PropTypes.instanceOf(Form).isRequired, | 45 | form: PropTypes.instanceOf(Form).isRequired, |
47 | onSubmit: PropTypes.func.isRequired, | 46 | onSubmit: PropTypes.func.isRequired, |
48 | isSaving: PropTypes.bool.isRequired, | 47 | isSaving: PropTypes.bool.isRequired, |
48 | isEnterprise: PropTypes.bool.isRequired, | ||
49 | }; | 49 | }; |
50 | 50 | ||
51 | static defaultProps = { | 51 | static defaultProps = { |
@@ -72,6 +72,7 @@ export default class EditServiceForm extends Component { | |||
72 | // user, | 72 | // user, |
73 | status, | 73 | status, |
74 | form, | 74 | form, |
75 | isEnterprise, | ||
75 | isSaving, | 76 | isSaving, |
76 | } = this.props; | 77 | } = this.props; |
77 | const { intl } = this.context; | 78 | const { intl } = this.context; |
@@ -105,8 +106,10 @@ export default class EditServiceForm extends Component { | |||
105 | <Input field={form.$('lastname')} /> | 106 | <Input field={form.$('lastname')} /> |
106 | </div> | 107 | </div> |
107 | <Input field={form.$('email')} /> | 108 | <Input field={form.$('email')} /> |
108 | <Radio field={form.$('accountType')} /> | 109 | {!isEnterprise && ( |
109 | {form.$('accountType').value === 'company' && ( | 110 | <Radio field={form.$('accountType')} /> |
111 | )} | ||
112 | {!isEnterprise && form.$('accountType').value === 'company' && ( | ||
110 | <Input field={form.$('organization')} /> | 113 | <Input field={form.$('organization')} /> |
111 | )} | 114 | )} |
112 | <h2>{intl.formatMessage(messages.headlinePassword)}</h2> | 115 | <h2>{intl.formatMessage(messages.headlinePassword)}</h2> |