1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

Library can not be transferred to owner. (#3404)

This commit is contained in:
sniper-py
2019-05-06 13:58:23 +08:00
committed by lian
parent c6451ce613
commit 80d75e2d74
5 changed files with 34 additions and 6 deletions

View File

@@ -176,11 +176,13 @@ class MylibRepoListItem extends React.Component {
this.props.onTransferRepo(repoID);
let message = gettext('Successfully transferred the library.');
toaster.success(message);
}).catch(res => {
let message = gettext('Failed. Please check the network.');
toaster.danger(message);
}).catch(error => {
if (error.response){
toaster.danger(error.response.data.error_msg || gettext('Error'), {duration: 3});
} else {
toaster.danger(gettext('Failed. Please check the network.'), {duration: 3});
}
});
this.onTransferToggle();
}