Fixed: Setting page size in Queue, History and Blocklist

Closes #7035
pull/7039/head
Mark McDowall 7 months ago committed by Mark McDowall
parent 78a0def46a
commit 4c0de55672

@ -59,6 +59,7 @@ function Blocklist() {
sortKey, sortKey,
sortDirection, sortDirection,
page, page,
pageSize,
totalPages, totalPages,
totalRecords, totalRecords,
isRemoving, isRemoving,
@ -223,6 +224,7 @@ function Blocklist() {
<PageToolbarSection alignContent={align.RIGHT}> <PageToolbarSection alignContent={align.RIGHT}>
<TableOptionsModalWrapper <TableOptionsModalWrapper
columns={columns} columns={columns}
pageSize={pageSize}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}
> >
<PageToolbarButton <PageToolbarButton
@ -264,6 +266,7 @@ function Blocklist() {
allSelected={allSelected} allSelected={allSelected}
allUnselected={allUnselected} allUnselected={allUnselected}
columns={columns} columns={columns}
pageSize={pageSize}
sortKey={sortKey} sortKey={sortKey}
sortDirection={sortDirection} sortDirection={sortDirection}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}

@ -53,6 +53,7 @@ function History() {
sortKey, sortKey,
sortDirection, sortDirection,
page, page,
pageSize,
totalPages, totalPages,
totalRecords, totalRecords,
} = useSelector((state: AppState) => state.history); } = useSelector((state: AppState) => state.history);
@ -154,6 +155,7 @@ function History() {
<PageToolbarSection alignContent={align.RIGHT}> <PageToolbarSection alignContent={align.RIGHT}>
<TableOptionsModalWrapper <TableOptionsModalWrapper
columns={columns} columns={columns}
pageSize={pageSize}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}
> >
<PageToolbarButton <PageToolbarButton
@ -193,6 +195,7 @@ function History() {
<div> <div>
<Table <Table
columns={columns} columns={columns}
pageSize={pageSize}
sortKey={sortKey} sortKey={sortKey}
sortDirection={sortDirection} sortDirection={sortDirection}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}

@ -73,6 +73,7 @@ function Queue() {
sortKey, sortKey,
sortDirection, sortDirection,
page, page,
pageSize,
totalPages, totalPages,
totalRecords, totalRecords,
isGrabbing, isGrabbing,
@ -269,8 +270,10 @@ function Queue() {
allSelected={allSelected} allSelected={allSelected}
allUnselected={allUnselected} allUnselected={allUnselected}
columns={columns} columns={columns}
pageSize={pageSize}
sortKey={sortKey} sortKey={sortKey}
sortDirection={sortDirection} sortDirection={sortDirection}
optionsComponent={QueueOptions}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}
onSelectAllChange={handleSelectAllChange} onSelectAllChange={handleSelectAllChange}
onSortPress={handleSortPress} onSortPress={handleSortPress}
@ -344,6 +347,7 @@ function Queue() {
<PageToolbarSection alignContent={align.RIGHT}> <PageToolbarSection alignContent={align.RIGHT}>
<TableOptionsModalWrapper <TableOptionsModalWrapper
columns={columns} columns={columns}
pageSize={pageSize}
maxPageSize={200} maxPageSize={200}
optionsComponent={QueueOptions} optionsComponent={QueueOptions}
onTableOptionChange={handleTableOptionChange} onTableOptionChange={handleTableOptionChange}

@ -5,7 +5,7 @@ import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup'; import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel'; import FormLabel from 'Components/Form/FormLabel';
import { inputTypes } from 'Helpers/Props'; import { inputTypes } from 'Helpers/Props';
import { setQueueOption } from 'Store/Actions/queueActions'; import { gotoQueuePage, setQueueOption } from 'Store/Actions/queueActions';
import { CheckInputChanged } from 'typings/inputs'; import { CheckInputChanged } from 'typings/inputs';
import translate from 'Utilities/String/translate'; import translate from 'Utilities/String/translate';
@ -22,6 +22,10 @@ function QueueOptions() {
[name]: value, [name]: value,
}) })
); );
if (name === 'includeUnknownSeriesItems') {
dispatch(gotoQueuePage({ page: 1 }));
}
}, },
[dispatch] [dispatch]
); );

Loading…
Cancel
Save