SupportBundles: Replace feature toggle with enabled (#63241)

replace feature toggle with enabled
This commit is contained in:
Jo
2023-02-10 10:12:04 +01:00
committed by GitHub
parent ed626427de
commit c70571c536
8 changed files with 5 additions and 18 deletions
+1 -2
View File
@@ -235,8 +235,7 @@ func (s *ServiceImpl) getHomeNode(c *contextmodel.ReqContext, prefs *pref.Prefer
}
func isSupportBundlesEnabled(s *ServiceImpl) bool {
return s.cfg.SectionWithEnvOverrides("support_bundles").Key("enabled").MustBool(true) &&
s.features.IsEnabled(featuremgmt.FlagSupportBundles)
return s.cfg.SectionWithEnvOverrides("support_bundles").Key("enabled").MustBool(true)
}
func (s *ServiceImpl) addHelpLinks(treeRoot *navtree.NavTreeRoot, c *contextmodel.ReqContext) {