Alerting: Fix reusing last url in tab when reopening a new tab in rule detail a… (#79801)

Fix reusing last url in tab when reopening a new tab in rule detail action buttons
This commit is contained in:
Sonia Aguilar 2024-01-02 10:51:34 +01:00 committed by GitHub
parent e5227550c4
commit 1654df24da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
key="explore"
variant="primary"
icon="chart-line"
target="__blank"
target="_blank"
href={createExploreLink(rulesSource, rule.query)}
>
See graph
@ -124,7 +124,7 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
key="runbook"
variant="primary"
icon="book"
target="__blank"
target="_blank"
href={textUtil.sanitizeUrl(rule.annotations[Annotation.runbookURL])}
>
View runbook
@ -140,7 +140,7 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
key="dashboard"
variant="primary"
icon="apps"
target="__blank"
target="_blank"
href={`d/${encodeURIComponent(dashboardUID)}`}
>
Go to dashboard
@ -154,7 +154,7 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
key="panel"
variant="primary"
icon="apps"
target="__blank"
target="_blank"
href={`d/${encodeURIComponent(dashboardUID)}?viewPanel=${encodeURIComponent(panelId)}`}
>
Go to panel
@ -170,7 +170,7 @@ export const RuleDetailsActionButtons = ({ rule, rulesSource, isViewMode }: Prop
size="sm"
key="silence"
icon="bell-slash"
target="__blank"
target="_blank"
href={makeRuleBasedSilenceLink(alertmanagerSourceName, rule)}
>
Silence