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

(cherry picked from commit c48d8d1d48)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-20 11:57:15 +02:00
committed by GitHub
co-authored by kay delaney
parent f62e76b5d5
commit e59f21a22e
21 changed files with 528 additions and 79 deletions
+6
View File
@@ -37,6 +37,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",
+6
View File
@@ -207,5 +207,11 @@ var (
State: FeatureStateBeta,
FrontendOnly: true,
},
{
Name: "persistNotifications",
Description: "PoC Notifications page",
State: FeatureStateAlpha,
FrontendOnly: true,
},
}
)
+4
View File
@@ -154,4 +154,8 @@ const (
// FlagExplore2Dashboard
// Experimental Explore to Dashboard workflow
FlagExplore2Dashboard = "explore2Dashboard"
// FlagPersistNotifications
// PoC Notifications page
FlagPersistNotifications = "persistNotifications"
)