1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

Merge pull request #3788 from haiwen/group-unshare-repair

update unshare call api
This commit is contained in:
Daniel Pan
2019-07-02 17:28:01 +08:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -240,7 +240,7 @@ class GroupView extends React.Component {
onItemUnshare = (repo) => {
let group = this.state.currentGroup;
seafileAPI.unshareRepo(repo.repo_id, {share_type: 'group', group_id: group.id}).then(() => {
seafileAPI.unshareRepoToGroup(repo.repo_id, group.id).then(() => {
let repoList = this.state.repoList.filter(item => {
return item.repo_id !== repo.repo_id;
});

View File

@@ -40,7 +40,7 @@ class RepoListViewPanel extends React.Component {
onItemUnshare = (repo) => {
let group = this.props.group;
seafileAPI.unshareRepo(repo.repo_id, {share_type: 'group', group_id: group.id}).then(() => {
seafileAPI.unshareRepoToGroup(repo.repo_id, group.id).then(() => {
let repoList = this.state.repoList.filter(item => {
return item.repo_id !== repo.repo_id;
});