1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 03:47:09 +00:00

Fix load departments in not Pro (#7333)

* 01 fix only isPro load departments

* 02 fix transfer repo
This commit is contained in:
Michael An
2025-01-08 15:58:05 +08:00
committed by GitHub
parent 5a8c9149b9
commit d1e0347194
4 changed files with 37 additions and 34 deletions

View File

@@ -171,8 +171,8 @@ class Item extends Component {
});
};
onTransferRepo = (owner, reshare) => {
systemAdminAPI.sysAdminTransferRepo(this.props.repo.id, owner.email, reshare).then((res) => {
onTransferRepo = (email, reshare) => {
systemAdminAPI.sysAdminTransferRepo(this.props.repo.id, email, reshare).then((res) => {
this.props.onTransferRepo(res.data);
let message = gettext('Successfully transferred the library.');
toaster.success(message);