mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
Merge branch '10.0'
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,6 +156,10 @@ 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) > SHARE_LINK_MAX_NUMBER) {
|
||||
this.setState({errorInfo: gettext('Please enter an integer smaller than 200 as number of links.')});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 'single' && isShowPasswordInput) {
|
||||
|
Reference in New Issue
Block a user