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:
David Kim (DK)
2025-05-29 16:37:14 +01:00
committed by GitHub
parent 020780f5ac
commit 939f2c9828
@@ -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
}
}
}