1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

change max share link number (#5603)

This commit is contained in:
Michael An
2023-08-22 17:35:16 +08:00
committed by GitHub
parent e1d4b5908a
commit 73dd04ec10
3 changed files with 9 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ const propTypes = {
};
const inputWidth = Utils.isDesktop() ? 250 : 210;
const SHARE_LINK_MAX_NUMBER = 200;
class LinkCreation extends React.Component {
@@ -155,8 +156,8 @@ class LinkCreation extends React.Component {
this.setState({errorInfo: gettext('Please enter an integer bigger than 1 as number of links.')});
return false;
}
if (parseInt(linkAmount) > 1000) {
this.setState({errorInfo: gettext('Please enter an integer smaller than 1000 as number of links.')});
if (parseInt(linkAmount) > SHARE_LINK_MAX_NUMBER) {
this.setState({errorInfo: gettext('Please enter an integer smaller than 200 as number of links.')});
return false;
}
}