1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

modiyi non standard org admin seafile js api name (#3970)

This commit is contained in:
Leo
2019-08-12 11:00:45 +08:00
committed by Daniel Pan
parent ec0e254b5e
commit 34144b5e84
12 changed files with 22 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ class AddOrgAdminDialog extends React.Component {
addOrgAdmin = () => {
if (!this.state.selectedOption) return;
const userEmail = this.state.selectedOption.email;
seafileAPI.setOrgAdmin(orgID, userEmail, true).then(res => {
seafileAPI.orgAdminSetOrgAdmin(orgID, userEmail, true).then(res => {
let userInfo = new OrgUserInfo(res.data);
this.props.onAddedOrgAdmin(userInfo);
}).catch(error => {

View File

@@ -37,7 +37,7 @@ class SetOrgUserContactEmail extends React.Component {
submitBtnDisabled: true
});
seafileAPI.setOrgUserContactEmail(orgID, email, contactEmail).then((res) => {
seafileAPI.orgAdminSetOrgUserContactEmail(orgID, email, contactEmail).then((res) => {
const newContactEmail = contactEmail ? res.data.contact_email : '';
this.props.updateContactEmail(newContactEmail);
this.props.toggleDialog();

View File

@@ -39,7 +39,7 @@ class SetOrgUserName extends React.Component {
// when name is '', api returns the previous name
// but newName needs to be ''
seafileAPI.setOrgUserName(orgID, email, name).then((res) => {
seafileAPI.orgAdminSetOrgUserName(orgID, email, name).then((res) => {
const newName = name ? res.data.name : '';
this.props.updateName(newName);
this.props.toggleDialog();

View File

@@ -46,7 +46,7 @@ class SetOrgUserQuota extends React.Component {
submitBtnDisabled: true
});
seafileAPI.setOrgUserQuota(orgID, email, quota).then((res) => {
seafileAPI.orgAdminSetOrgUserQuota(orgID, email, quota).then((res) => {
this.props.updateQuota(res.data.quota_total);
this.props.toggleDialog();
}).catch((error) => {