Explore: Add hide_logs_download and hide button to download logs (#99512)
* Explore: Add `disableLogsDownload` and hide button to download logs * change copy * Explore: Change `disableLogsDownload` to `hide_logs_download` * change casing in frontend * also hide from inspector * add test * lint
This commit is contained in:
@@ -511,6 +511,7 @@ type Cfg struct {
|
||||
// Explore UI
|
||||
ExploreEnabled bool
|
||||
ExploreDefaultTimeOffset string
|
||||
ExploreHideLogsDownload bool
|
||||
|
||||
// Help UI
|
||||
HelpEnabled bool
|
||||
@@ -1214,6 +1215,7 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
} else {
|
||||
cfg.ExploreDefaultTimeOffset = exploreDefaultTimeOffset
|
||||
}
|
||||
cfg.ExploreHideLogsDownload = explore.Key("hide_logs_download").MustBool(false)
|
||||
|
||||
help := iniFile.Section("help")
|
||||
cfg.HelpEnabled = help.Key("enabled").MustBool(true)
|
||||
|
||||
Reference in New Issue
Block a user