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; reportMetadata?: ReportMetadata;
showActionsColumn?: boolean; showActionsColumn?: boolean;
showLinkToReport?: boolean; showLinkToReport?: boolean;
showRefreshButton?: boolean;
tableHtmlId?: string; tableHtmlId?: string;
textToShowIfEmpty?: string; textToShowIfEmpty?: string;
variant?: string; variant?: string;
@ -73,6 +74,7 @@ export default function ProcessInstanceListTable({
reportMetadata, reportMetadata,
showActionsColumn = false, showActionsColumn = false,
showLinkToReport = false, showLinkToReport = false,
showRefreshButton = false,
tableHtmlId, tableHtmlId,
textToShowIfEmpty, textToShowIfEmpty,
variant = 'for-me', variant = 'for-me',
@ -393,6 +395,7 @@ export default function ProcessInstanceListTable({
> >
{headerTextElement} {headerTextElement}
</h2> </h2>
{showRefreshButton ? (
<Button <Button
kind="ghost" kind="ghost"
data-qa="refresh-process-instance-table" data-qa="refresh-process-instance-table"
@ -401,6 +404,7 @@ export default function ProcessInstanceListTable({
hasIconOnly hasIconOnly
onClick={() => getProcessInstances()} onClick={() => getProcessInstances()}
/> />
) : null}
</Stack> </Stack>
); );
} }

View File

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