1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

[user settings] modification

This commit is contained in:
llj
2019-05-08 10:59:27 +08:00
parent c09bba589f
commit 309305bdc9
2 changed files with 6 additions and 7 deletions

View File

@@ -45,11 +45,14 @@ class UserBasicInfoForm extends React.Component {
handleSubmit = (e) => {
e.preventDefault();
this.props.updateUserInfo({
let data = {
name: this.state.name,
contact_email: this.state.contactEmail,
telephone: this.state.telephone
});
};
if (enableUserSetContactEmail) {
data.contact_email = this.state.contactEmail;
}
this.props.updateUserInfo(data);
}
render() {