Profile/Help: Expose option to disable profile section and help menu (#46308)
* Expose option to disable help menu * Expose option to disable profile menu * Add Profile FeatureTogglePage * Update public/app/features/profile/FeatureTogglePage.tsx Uptake PR wording suggestion. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Fix front end lint issue * Fix back end lint issue Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
co-authored by
achatterjee-grafana
parent
932f43b220
commit
8426cfe400
@@ -171,6 +171,12 @@ var (
|
||||
// Explore UI
|
||||
ExploreEnabled bool
|
||||
|
||||
// Help UI
|
||||
HelpEnabled bool
|
||||
|
||||
// Profile UI
|
||||
ProfileEnabled bool
|
||||
|
||||
// Grafana.NET URL
|
||||
GrafanaComUrl string
|
||||
|
||||
@@ -943,6 +949,12 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
|
||||
explore := iniFile.Section("explore")
|
||||
ExploreEnabled = explore.Key("enabled").MustBool(true)
|
||||
|
||||
help := iniFile.Section("help")
|
||||
HelpEnabled = help.Key("enabled").MustBool(true)
|
||||
|
||||
profile := iniFile.Section("profile")
|
||||
ProfileEnabled = profile.Key("enabled").MustBool(true)
|
||||
|
||||
queryHistory := iniFile.Section("query_history")
|
||||
cfg.QueryHistoryEnabled = queryHistory.Key("enabled").MustBool(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user