1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

share link duplicate generate, return error msg and 400 (#3789)

* share link duplicate generate, return error msg and 400

* add test case
This commit is contained in:
Leo
2019-07-04 16:22:50 +08:00
committed by lian
parent 3e28f5da62
commit b0d05f615f
3 changed files with 48 additions and 8 deletions

View File

@@ -128,6 +128,8 @@ class GenerateShareLink extends React.Component {
seafileAPI.createShareLink(repoID, itemPath, password, expireDays, permissions).then((res) => {
let sharedLinkInfo = new SharedLinkInfo(res.data);
this.setState({sharedLinkInfo: sharedLinkInfo});
}).catch((error) => {
toaster.danger(error.response.data.error_msg);
});
}
}