mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AlertRuleList: Add keys to alert rule items (#28735)
This commit is contained in:
parent
9742f63a11
commit
18d8185eb0
@ -46,10 +46,15 @@ const AlertRuleItem = ({ rule, search, onTogglePause }: Props) => {
|
|||||||
rule.info ? renderText(rule.info) : null,
|
rule.info ? renderText(rule.info) : null,
|
||||||
]}
|
]}
|
||||||
actions={[
|
actions={[
|
||||||
<Button variant="secondary" icon={rule.state === 'paused' ? 'play' : 'pause'} onClick={onTogglePause}>
|
<Button
|
||||||
|
key="play"
|
||||||
|
variant="secondary"
|
||||||
|
icon={rule.state === 'paused' ? 'play' : 'pause'}
|
||||||
|
onClick={onTogglePause}
|
||||||
|
>
|
||||||
{rule.state === 'paused' ? 'Resume' : 'Pause'}
|
{rule.state === 'paused' ? 'Resume' : 'Pause'}
|
||||||
</Button>,
|
</Button>,
|
||||||
<LinkButton variant="secondary" href={ruleUrl} icon="cog">
|
<LinkButton key="edit" variant="secondary" href={ruleUrl} icon="cog">
|
||||||
Edit alert
|
Edit alert
|
||||||
</LinkButton>,
|
</LinkButton>,
|
||||||
]}
|
]}
|
||||||
|
Loading…
Reference in New Issue
Block a user