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