mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
move saved items feature behind separate feature toggle (#48117)
This commit is contained in:
parent
c73b9d1818
commit
e420252d45
@ -56,4 +56,5 @@ export interface FeatureToggles {
|
||||
explore2Dashboard?: boolean;
|
||||
persistNotifications?: boolean;
|
||||
commandPalette?: boolean;
|
||||
savedItems?: boolean;
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool, prefs *
|
||||
hasAccess := ac.HasAccess(hs.AccessControl, c)
|
||||
navTree := []*dtos.NavLink{}
|
||||
|
||||
if hs.Features.IsEnabled(featuremgmt.FlagNewNavigation) {
|
||||
if hs.Features.IsEnabled(featuremgmt.FlagSavedItems) {
|
||||
savedItemsLinks, err := hs.buildSavedItemsNavLinks(c, prefs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -226,5 +226,10 @@ var (
|
||||
Description: "Enable command palette",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
{
|
||||
Name: "savedItems",
|
||||
Description: "Enable Saved Items in the navbar.",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
@ -166,4 +166,8 @@ const (
|
||||
// FlagCommandPalette
|
||||
// Enable command palette
|
||||
FlagCommandPalette = "commandPalette"
|
||||
|
||||
// FlagSavedItems
|
||||
// Enable Saved Items in the navbar.
|
||||
FlagSavedItems = "savedItems"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user