added setting top hide plugins in alpha state

This commit is contained in:
Torkel Ödegaard
2018-10-09 17:47:43 +02:00
parent d2bdf8cff1
commit 565edc1ed3
14 changed files with 99 additions and 85 deletions

View File

@@ -209,6 +209,8 @@ type Cfg struct {
TempDataLifetime time.Duration
MetricsEndpointEnabled bool
EnableAlphaPanels bool
}
type CommandLineArgs struct {
@@ -688,6 +690,9 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
explore := iniFile.Section("explore")
ExploreEnabled = explore.Key("enabled").MustBool(false)
panels := iniFile.Section("panels")
cfg.EnableAlphaPanels = panels.Key("enable_alpha").MustBool(false)
cfg.readSessionConfig()
cfg.readSmtpSettings()
cfg.readQuotaSettings()