mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 09:50:35 +00:00
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;
|
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,14 +395,16 @@ export default function ProcessInstanceListTable({
|
|||||||
>
|
>
|
||||||
{headerTextElement}
|
{headerTextElement}
|
||||||
</h2>
|
</h2>
|
||||||
<Button
|
{showRefreshButton ? (
|
||||||
kind="ghost"
|
<Button
|
||||||
data-qa="refresh-process-instance-table"
|
kind="ghost"
|
||||||
renderIcon={Renew}
|
data-qa="refresh-process-instance-table"
|
||||||
iconDescription="Refresh data in the table"
|
renderIcon={Renew}
|
||||||
hasIconOnly
|
iconDescription="Refresh data in the table"
|
||||||
onClick={() => getProcessInstances()}
|
hasIconOnly
|
||||||
/>
|
onClick={() => getProcessInstances()}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user