1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00
This commit is contained in:
孙永强
2024-10-22 14:34:31 +08:00
committed by r350178982
parent 5bca7807d1
commit f1fd929824
3 changed files with 4 additions and 22 deletions

View File

@@ -245,14 +245,8 @@ class SharedRepoListItem extends React.Component {
onTransferRepo = (user) => {
let repoID = this.props.repo.repo_id;
let groupID = this.props.currentGroup.id;
let email = null;
if (Array.isArray(user)) {
email = user[0].email;
} else {
email = user.email;
}
userAPI.depAdminTransferRepo(repoID, groupID, email).then(res => {
this.props.onTransferRepo(repoID, groupID, email);
userAPI.depAdminTransferRepo(repoID, groupID, user.email).then(res => {
this.props.onTransferRepo(repoID, groupID, user.email);
let message = gettext('Successfully transferred the library.');
toaster.success(message);
}).catch(error => {