only show the refresh button from filters table w/ burnettk

This commit is contained in:
jasquat 2024-02-29 16:26:20 -05:00
parent 0565e63e98
commit 107eaaff3e
No known key found for this signature in database
2 changed files with 14 additions and 9 deletions

View File

@ -54,6 +54,7 @@ type OwnProps = {
reportMetadata?: ReportMetadata;
showActionsColumn?: boolean;
showLinkToReport?: boolean;
showRefreshButton?: boolean;
tableHtmlId?: string;
textToShowIfEmpty?: string;
variant?: string;
@ -73,6 +74,7 @@ export default function ProcessInstanceListTable({
reportMetadata,
showActionsColumn = false,
showLinkToReport = false,
showRefreshButton = false,
tableHtmlId,
textToShowIfEmpty,
variant = 'for-me',
@ -393,14 +395,16 @@ export default function ProcessInstanceListTable({
>
{headerTextElement}
</h2>
<Button
kind="ghost"
data-qa="refresh-process-instance-table"
renderIcon={Renew}
iconDescription="Refresh data in the table"
hasIconOnly
onClick={() => getProcessInstances()}
/>
{showRefreshButton ? (
<Button
kind="ghost"
data-qa="refresh-process-instance-table"
renderIcon={Renew}
iconDescription="Refresh data in the table"
hasIconOnly
onClick={() => getProcessInstances()}
/>
) : null}
</Stack>
);
}

View File

@ -1565,6 +1565,7 @@ export default function ProcessInstanceListTableWithFilters({
<ProcessInstanceListTable
autoReload={autoReloadEnabled}
canCompleteAllTasks={canCompleteAllTasks}
filterComponent={filterComponent}
header={header}
onProcessInstanceTableListUpdate={onProcessInstanceTableListUpdate}
paginationClassName={paginationClassName}
@ -1573,10 +1574,10 @@ export default function ProcessInstanceListTableWithFilters({
reportMetadata={reportMetadata}
showActionsColumn={showActionsColumn}
showLinkToReport={showLinkToReport}
showRefreshButton
tableHtmlId={tableHtmlId}
textToShowIfEmpty={textToShowIfEmpty}
variant={variant}
filterComponent={filterComponent}
/>
</>
);