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