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

Add pagination in group modal alert table
pull/60213/head^2
Sonia Aguilar 3 years ago committed by GitHub
parent d0f6a3a4ca
commit 4ae0382415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx

@ -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…
Cancel
Save