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

add the `IsNew` badge to the IRM menu item
pull/101928/head^2
Matthew Thorning 2 months ago committed by GitHub
parent c74a5fcbed
commit d9cb6e632d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pkg/services/navtree/navtreeimpl/applinks.go

@ -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",

Loading…
Cancel
Save