only show the refresh button from filters table w/ burnettk
This commit is contained in:
parent
0565e63e98
commit
107eaaff3e
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue