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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user