Frontend: Add notification persistence behind feature flag (#47871)

This commit is contained in:
kay delaney
2022-04-20 10:42:32 +01:00
committed by GitHub
parent be3f52abb1
commit c48d8d1d48
21 changed files with 528 additions and 79 deletions
+6
View File
@@ -38,6 +38,12 @@ func (hs *HTTPServer) getProfileNode(c *models.ReqContext) *dtos.NavLink {
},
}
if hs.Features.IsEnabled(featuremgmt.FlagPersistNotifications) {
children = append(children, &dtos.NavLink{
Text: "Notifications", Id: "notifications", Url: hs.Cfg.AppSubURL + "/notifications", Icon: "bell",
})
}
if setting.AddChangePasswordLink() {
children = append(children, &dtos.NavLink{
Text: "Change password", Id: "change-password", Url: hs.Cfg.AppSubURL + "/profile/password",