mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Add pagination in group modal alert table (#60868)
Add pagination in group modal alert table
This commit is contained in:
parent
d0f6a3a4ca
commit
4ae0382415
@ -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>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user