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:
@@ -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) => {
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user