mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 11:21:29 +00:00
update transfer repo (#6965)
* update * optimize code * optimize * update sql * test * update * optimize * update UI * change style --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
@@ -242,10 +242,10 @@ class SharedRepoListItem extends React.Component {
|
||||
this.setState({ isTransferDialogShow: !this.state.isTransferDialogShow });
|
||||
};
|
||||
|
||||
onTransferRepo = (user) => {
|
||||
onTransferRepo = (user, reshare) => {
|
||||
let repoID = this.props.repo.repo_id;
|
||||
let groupID = this.props.currentGroup.id;
|
||||
userAPI.depAdminTransferRepo(repoID, groupID, user.email).then(res => {
|
||||
userAPI.depAdminTransferRepo(repoID, groupID, user.email, reshare).then(res => {
|
||||
this.props.onTransferRepo(repoID, groupID, user.email);
|
||||
let message = gettext('Successfully transferred the library.');
|
||||
toaster.success(message);
|
||||
|
Reference in New Issue
Block a user