1
0
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:
wang
2023-08-23 13:16:05 +08:00
4 changed files with 126 additions and 13 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,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) {