Alerting: Add pagination in group modal alert table (#60868)

Add pagination in group modal alert table
This commit is contained in:
Sonia Aguilar 2023-01-04 14:48:34 +01:00 committed by GitHub
parent d0f6a3a4ca
commit 4ae0382415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,7 @@ import { EvaluationIntervalLimitExceeded } from '../InvalidIntervalWarning';
import { MIN_TIME_RANGE_STEP_S } from '../rule-editor/GrafanaEvaluationBehavior';
const MINUTE = '1m';
const ITEMS_PER_PAGE = 10;
interface AlertInfo {
alertName: string;
forDuration: string;
@ -192,7 +193,7 @@ export const RulesForGroupTable = ({
return (
<div className={styles.tableWrapper}>
<DynamicTable items={rows} cols={columns} />
<DynamicTable items={rows} cols={columns} pagination={{ itemsPerPage: ITEMS_PER_PAGE }} />
</div>
);
};