Home: add setup guide tab under home tab (#92947)
* feat: add setup guide in home tab * chore: add feature toggle for setup guide * chore: add feature toggle for sub menu * chore: run pretier * chore: run i18n * chore: run generated files again * chore: update description * chore: update comment to trigger test flow * chore: trigger test * chore: fix styling
This commit is contained in:
@@ -202,6 +202,18 @@ func (s *ServiceImpl) getHomeNode(c *contextmodel.ReqContext, prefs *pref.Prefer
|
||||
Icon: "home-alt",
|
||||
SortWeight: navtree.WeightHome,
|
||||
}
|
||||
ctx := c.Req.Context()
|
||||
if s.features.IsEnabled(ctx, featuremgmt.FlagHomeSetupGuide) {
|
||||
var children []*navtree.NavLink
|
||||
// setup guide (a submenu item under Home)
|
||||
children = append(children, &navtree.NavLink{
|
||||
Id: "home-setup-guide",
|
||||
Text: "Setup guide",
|
||||
Url: homeUrl + "/setup-guide",
|
||||
SortWeight: navtree.WeightHome,
|
||||
})
|
||||
homeNode.Children = children
|
||||
}
|
||||
return homeNode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user