Add page sizes up to 1000 (#904)

This commit is contained in:
WithoutPants 2020-10-29 09:27:56 +11:00 committed by GitHub
parent 01227ceb85
commit 90c5a9dd4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -117,8 +117,9 @@ func getPagination(findFilter *FindFilterType) string {
} else {
perPage = *findFilter.PerPage
}
if perPage > 120 {
perPage = 120
if perPage > 1000 {
perPage = 1000
} else if perPage < 1 {
perPage = 1
}

View file

@ -9,6 +9,7 @@
* Add selective scene export.
### 🎨 Improvements
* Increase page size limit to 1000 and add new page size options.
* Add support for query URL parameter regex replacement when scraping by query URL.
* Include empty fields in isMissing filter
* Show static image on scene wall if preview video is missing.

View file

@ -40,7 +40,7 @@ interface IListFilterProps {
itemsSelected?: boolean;
}
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120"];
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120", "250", "500", "1000"];
const minZoom = 0;
const maxZoom = 3;

View file

@ -121,7 +121,7 @@ export const ParserInput: React.FC<IParserInputProps> = (
setPattern(pattern + field.getFieldPattern());
}
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120"];
const PAGE_SIZE_OPTIONS = ["20", "40", "60", "120", "250", "500", "1000"];
return (
<Form.Group>