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 1b485932b9
commit 7696ae8efe

View File

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