Alerting: Adds additional pagination to several views (#74268)

This commit is contained in:
Gilles De Mey
2023-09-01 13:39:47 +02:00
committed by GitHub
parent dd2520ece0
commit 94dd17a936
3 changed files with 4 additions and 3 deletions

View File

@ -80,7 +80,7 @@ export const MuteTimingsTable = ({ alertManagerSourceName, muteTimingNames, hide
)}
</Stack>
{items.length > 0 ? (
<DynamicTable items={items} cols={columns} />
<DynamicTable items={items} cols={columns} pagination={{ itemsPerPage: 25 }} />
) : !hideActions ? (
<EmptyAreaWithCTA
text="You haven't created any mute timings yet"

View File

@ -283,7 +283,7 @@ function NotifiersTable({ notifiersState }: NotifiersTableProps) {
})
);
return <DynamicTable items={notifierRows} cols={getNotifierColumns()} />;
return <DynamicTable items={notifierRows} cols={getNotifierColumns()} pagination={{ itemsPerPage: 25 }} />;
}
interface Props {
@ -375,6 +375,7 @@ export const ReceiversTable = ({ config, alertManagerName }: Props) => {
}
>
<DynamicTable
pagination={{ itemsPerPage: 25 }}
items={rows}
cols={columns}
isExpandable={errorStateAvailable}

View File

@ -70,7 +70,7 @@ const StateHistory = ({ alertId }: Props) => {
<header className={styles.tableGroupKey}>
<code>{groupKey}</code>
</header>
<DynamicTable cols={columns} items={tableItems} />
<DynamicTable cols={columns} items={tableItems} pagination={{ itemsPerPage: 25 }} />
</div>
);
});