1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

change org department function name (#3938)

* change org depatrment function name

* change name

* change name
This commit is contained in:
Michael An
2019-08-01 18:40:26 +08:00
committed by llj
parent 1f78ae8ac5
commit 1c6fa019d0
5 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class AddMemberDialog extends React.Component {
const email = this.state.selectedOption.email;
this.refs.orgSelect.clearSelect();
this.setState({ errMessage: [] });
seafileAPI.orgAdminAddDepartGroupUser(orgID, this.props.groupID, email).then((res) => {
seafileAPI.orgAdminAddGroupMember(orgID, this.props.groupID, email).then((res) => {
this.setState({ selectedOption: null });
if (res.data.failed.length > 0) {
this.setState({ errMessage: res.data.failed[0].error_msg });

View File

@@ -30,7 +30,7 @@ class AddRepoDialog extends React.Component {
handleSubmit = () => {
let isValid = this.validateName();
if (isValid) {
seafileAPI.orgAdminAddDepartGroupRepo(orgID, this.props.groupID, this.state.repoName.trim()).then((res) => {
seafileAPI.orgAdminAddDepartmentRepo(orgID, this.props.groupID, this.state.repoName.trim()).then((res) => {
this.props.toggle();
this.props.onRepoChanged();
}).catch(error => {

View File

@@ -21,7 +21,7 @@ class DeleteMemberDialog extends React.Component {
deleteMember = () => {
const userEmail = this.props.member.email;
seafileAPI.orgAdminDeleteDepartGroupUser(orgID, this.props.groupID, userEmail).then((res) => {
seafileAPI.orgAdminDeleteGroupMember(orgID, this.props.groupID, userEmail).then((res) => {
if (res.data.success) {
this.props.onMemberChanged();
this.props.toggle();

View File

@@ -13,7 +13,7 @@ class DeleteRepoDialog extends React.Component {
}
deleteRepo = () => {
seafileAPI.orgAdminDeleteDepartGroupRepo(orgID, this.props.groupID, this.props.repo.repo_id).then((res) => {
seafileAPI.orgAdminDeleteDepartmentRepo(orgID, this.props.groupID, this.props.repo.repo_id).then((res) => {
if (res.data.success) {
this.props.onRepoChanged();
this.props.toggle();