Navigation: Add the new badge to the SLO reports nav item (#105707)
* attempt to add slo reports badge * fix build * add new badge for reports for subitem in grafana-slo-app
This commit is contained in:
@@ -174,6 +174,11 @@ func (s *ServiceImpl) processAppPlugin(plugin pluginstore.Plugin, c *contextmode
|
||||
IsNew: true,
|
||||
}
|
||||
alertsSection.Children = append(alertsSection.Children, serviceLink)
|
||||
|
||||
reportsNavLink := navtree.FindByURL(alertsSection.Children, "/a/grafana-slo-app/reports")
|
||||
if reportsNavLink != nil {
|
||||
reportsNavLink.IsNew = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user