mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 07:23:11 +08:00
Alerting: Adds additional pagination to several views (#74268)
This commit is contained in:
@ -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"
|
||||
|
@ -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}
|
||||
|
@ -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>
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user