News: Expose config option to disable News feed (#69365)
* customize news feed * remove url customisation
This commit is contained in:
@@ -135,6 +135,9 @@ var (
|
||||
// Profile UI
|
||||
ProfileEnabled bool
|
||||
|
||||
// News Feed
|
||||
NewsFeedEnabled bool
|
||||
|
||||
// Grafana.NET URL
|
||||
GrafanaComUrl string
|
||||
|
||||
@@ -1104,6 +1107,9 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
|
||||
profile := iniFile.Section("profile")
|
||||
ProfileEnabled = profile.Key("enabled").MustBool(true)
|
||||
|
||||
news := iniFile.Section("news")
|
||||
NewsFeedEnabled = news.Key("news_feed_enabled").MustBool(true)
|
||||
|
||||
queryHistory := iniFile.Section("query_history")
|
||||
cfg.QueryHistoryEnabled = queryHistory.Key("enabled").MustBool(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user