1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

rename onItemShared to onItemShare

This commit is contained in:
shanshuirenjia
2018-12-10 18:37:59 +08:00
parent 2728bde3ad
commit 9a043d8c41
4 changed files with 21 additions and 10 deletions

View File

@@ -169,7 +169,7 @@ class GroupView extends React.Component {
return newRepoList;
}
onItemUnshared = (repo) => {
onItemUnshare = (repo) => {
let group = this.state.currentGroup;
seafileAPI.unshareRepo(repo.repo_id, {share_type: 'group', group_id: group.id}).then(() => {
let repoList = this.state.repoList.filter(item => {
@@ -226,7 +226,7 @@ class GroupView extends React.Component {
<SharedRepoListView
repoList={this.state.repoList}
currentGroup={this.state.currentGroup}
onItemUnshared={this.onItemUnshared}
onItemUnshare={this.onItemUnshare}
/>
}
</div>