Alerting: Change Panel Edit link to Panel View link (#27378)

Enables alerts to be sent to users who do not have edit permissions.

Addresses Issue: https://github.com/grafana/grafana/issues/26014
This commit is contained in:
robert lestak 2020-09-07 22:01:48 -07:00 committed by GitHub
parent 4b1eb6e5c7
commit d0e980c2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ func (c *EvalContext) GetDashboardUID() (*models.DashboardRef, error) {
return c.dashboardRef, nil
}
const urlFormat = "%s?tab=alert&editPanel=%d&orgId=%d"
const urlFormat = "%s?tab=alert&viewPanel=%d&orgId=%d"
// GetRuleURL returns the url to the dashboard containing the alert.
func (c *EvalContext) GetRuleURL() (string, error) {