mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ReturnToPrevious: Add this functionality to the "Go to panel" button on Alert rules (#83630)
Add RTP to the 'Go to panel' button
This commit is contained in:
parent
2a429cd7db
commit
f0822e0aef
@ -160,8 +160,11 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
|
||||
key="panel"
|
||||
variant="primary"
|
||||
icon="apps"
|
||||
target="_blank"
|
||||
target={isReturnToPreviousEnabled ? undefined : '_blank'}
|
||||
href={`d/${encodeURIComponent(dashboardUID)}?viewPanel=${encodeURIComponent(panelId)}`}
|
||||
onClick={() => {
|
||||
setReturnToPrevious(rule.name);
|
||||
}}
|
||||
>
|
||||
Go to panel
|
||||
</LinkButton>
|
||||
|
Loading…
Reference in New Issue
Block a user