Merged in feature/IO-2261-opensearch-replacements (pull request #757)

IO-2261 All Jobs, Bills, Payments

Approved-by: Patrick Fic
This commit is contained in:
Allan Carr
2023-05-05 14:49:23 +00:00
committed by Patrick Fic
4 changed files with 16 additions and 10 deletions

View File

@@ -230,6 +230,7 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
<Button
onClick={() => {
delete search.search;
delete search.page;
history.push({ search: queryString.stringify(search) });
}}
>
@@ -257,9 +258,11 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
loading={loading || searchLoading}
pagination={
search?.search
? { pageSize: 25 }
? {
pageSize: 25,
showSizeChanger: false,
}
: {
position: "top",
pageSize: 25,
current: parseInt(page || 1),
total: total,

View File

@@ -218,6 +218,7 @@ export function PaymentsListPaginated({
<Button
onClick={() => {
delete search.search;
delete search.page;
history.push({ search: queryString.stringify(search) });
}}
>
@@ -254,9 +255,11 @@ export function PaymentsListPaginated({
scroll={{ x: true }}
pagination={
search?.search
? { pageSize: 25 }
? {
pageSize: 25,
showSizeChanger: false,
}
: {
position: "top",
pageSize: 25,
current: parseInt(page || 1),
total: total,