activate filter button for status change as well and do not hide table when changing filters but do show help text w/ burnettk

This commit is contained in:
jasquat 2023-03-20 10:03:26 -04:00
parent 1fdbbd3170
commit 371aae4a50
No known key found for this signature in database
1 changed files with 15 additions and 10 deletions

View File

@ -683,6 +683,7 @@ export default function ProcessInstanceListTable({
items={processStatusAllOptions}
onChange={(selection: any) => {
setProcessStatusSelection(selection.selectedItems);
setRequiresRefilter(true);
}}
itemToString={(item: any) => {
return item || '';
@ -1450,14 +1451,18 @@ export default function ProcessInstanceListTable({
// eslint-disable-next-line prefer-destructuring
perPage = perPageOptions[1];
}
let resultsTable = (
<h2>
Please press the filter button when you have completed updating the
filters.
</h2>
);
if (!requiresRefilter) {
resultsTable = (
let refilterTextComponent = null;
if (requiresRefilter) {
refilterTextComponent = (
<h2>
Please press the filter button when you have completed updating the
filters.
</h2>
);
}
const resultsTable = (
<>
{refilterTextComponent}
<PaginationForTable
page={page}
perPage={perPage}
@ -1467,8 +1472,8 @@ export default function ProcessInstanceListTable({
perPageOptions={perPageOptions}
paginationClassName={paginationClassName}
/>
);
}
</>
);
return (
<>
{reportColumnForm()}