diff options
author | 2018-02-13 11:02:28 +0100 | |
---|---|---|
committer | 2018-02-13 11:02:28 +0100 | |
commit | 4284b88f44caa9b7adb180a1e07bdd834f5b7ad6 (patch) | |
tree | 619e5a42fb9100c4b7982a6ecf55d28fe276e546 /src/components/settings/user/EditUserForm.js | |
parent | Merge pull request #654 from meetfranz/feature/invite-button (diff) | |
download | ferdium-app-4284b88f44caa9b7adb180a1e07bdd834f5b7ad6.tar.gz ferdium-app-4284b88f44caa9b7adb180a1e07bdd834f5b7ad6.tar.zst ferdium-app-4284b88f44caa9b7adb180a1e07bdd834f5b7ad6.zip |
feat(App) Feature Added enterprise UI
##Account Dashboard:
- CHANGE account type to 'Enterprise Account' (green badge)
- REMOVE button 'Edit Account' if SSO login is used
- ADD company name and contact information
- REMOVE premium account plans section
- REMOVE account deletion
##Settings Navigation
- REMOVE available services if user not allowed to manage services
##Edit Service
- REMOVE delete button if user not allowed to manage services
- CHANGE disable team / custom URL if user not allowed to manage services
##Edit User
- REMOVE account type
##User.js
- ADD mock enterprise properties
##Input.js
- FIX disabled passthrough
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 f36887fc2..1ac8be80f 100644 --- a/src/components/settings/user/EditUserForm.js +++ b/src/components/settings/user/EditUserForm.js | |||
@@ -46,6 +46,7 @@ export default class EditServiceForm extends Component { | |||
46 | form: PropTypes.instanceOf(Form).isRequired, | 46 | form: PropTypes.instanceOf(Form).isRequired, |
47 | onSubmit: PropTypes.func.isRequired, | 47 | onSubmit: PropTypes.func.isRequired, |
48 | isSaving: PropTypes.bool.isRequired, | 48 | isSaving: PropTypes.bool.isRequired, |
49 | isEnterprise: PropTypes.bool.isRequired, | ||
49 | }; | 50 | }; |
50 | 51 | ||
51 | static defaultProps = { | 52 | static defaultProps = { |
@@ -72,6 +73,7 @@ export default class EditServiceForm extends Component { | |||
72 | // user, | 73 | // user, |
73 | status, | 74 | status, |
74 | form, | 75 | form, |
76 | isEnterprise, | ||
75 | isSaving, | 77 | isSaving, |
76 | } = this.props; | 78 | } = this.props; |
77 | const { intl } = this.context; | 79 | const { intl } = this.context; |
@@ -105,8 +107,10 @@ export default class EditServiceForm extends Component { | |||
105 | <Input field={form.$('lastname')} /> | 107 | <Input field={form.$('lastname')} /> |
106 | </div> | 108 | </div> |
107 | <Input field={form.$('email')} /> | 109 | <Input field={form.$('email')} /> |
108 | <Radio field={form.$('accountType')} /> | 110 | {!isEnterprise && ( |
109 | {form.$('accountType').value === 'company' && ( | 111 | <Radio field={form.$('accountType')} /> |
112 | )} | ||
113 | {!isEnterprise && form.$('accountType').value === 'company' && ( | ||
110 | <Input field={form.$('organization')} /> | 114 | <Input field={form.$('organization')} /> |
111 | )} | 115 | )} |
112 | <h2>{intl.formatMessage(messages.headlinePassword)}</h2> | 116 | <h2>{intl.formatMessage(messages.headlinePassword)}</h2> |