(cherry picked from commit c48d8d1d48)
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
This commit is contained in:
co-authored by
kay delaney
parent
f62e76b5d5
commit
e59f21a22e
@@ -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",
|
||||
|
||||
@@ -207,5 +207,11 @@ var (
|
||||
State: FeatureStateBeta,
|
||||
FrontendOnly: true,
|
||||
},
|
||||
{
|
||||
Name: "persistNotifications",
|
||||
Description: "PoC Notifications page",
|
||||
State: FeatureStateAlpha,
|
||||
FrontendOnly: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@@ -154,4 +154,8 @@ const (
|
||||
// FlagExplore2Dashboard
|
||||
// Experimental Explore to Dashboard workflow
|
||||
FlagExplore2Dashboard = "explore2Dashboard"
|
||||
|
||||
// FlagPersistNotifications
|
||||
// PoC Notifications page
|
||||
FlagPersistNotifications = "persistNotifications"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user