mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
update unshare call api
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
@@ -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;
|
||||
});
|
||||
|
Reference in New Issue
Block a user