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:
Sven Grossmann
2025-01-29 11:53:52 +01:00
committed by GitHub
parent 6ea87802ed
commit 336449c169
11 changed files with 55 additions and 8 deletions
+2
View File
@@ -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)