Navigation: Add the IsNew badge to the IRM menu item (#101926)

add the `IsNew` badge to the IRM menu item
This commit is contained in:
Matthew Thorning
2025-03-11 14:31:43 +00:00
committed by GitHub
parent c74a5fcbed
commit d9cb6e632d
@@ -239,6 +239,9 @@ func (s *ServiceImpl) addPluginToSection(c *contextmodel.ReqContext, treeRoot *n
alertsAndIncidentsChildren = append(alertsAndIncidentsChildren, alertingNode)
treeRoot.RemoveSection(alertingNode)
}
if appLink.Id == "plugin-page-grafana-irm-app" {
appLink.IsNew = true
}
alertsAndIncidentsChildren = append(alertsAndIncidentsChildren, appLink)
treeRoot.AddSection(&navtree.NavLink{
Text: "Alerts & IRM",