1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 04:10:47 +00:00

Merge pull request #3421 from haiwen/user-setting-m

[user settings] modification
This commit is contained in:
llj
2019-05-08 11:06:10 +08:00
committed by GitHub
2 changed files with 6 additions and 7 deletions

View File

@@ -36,10 +36,6 @@ class EmailNotice extends React.Component {
formSubmit = (e) => {
e.preventDefault();
const { currentInterval } = this.state;
if (currentInterval == initialEmailNotificationInterval) {
return;
}
seafileAPI.updateEmailNotificationInterval(this.state.currentInterval).then((res) => {
toaster.success(gettext('Success'));
}).catch((error) => {

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() {