hide caching settings when its disabled (#34756)

This commit is contained in:
Kevin Minehart
2021-05-26 12:27:28 -05:00
committed by GitHub
parent 4221f2d147
commit 3aba08f708
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -255,6 +255,9 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *models.ReqContext) (map[string]i
"cloud": hs.Cfg.Azure.Cloud,
"managedIdentityEnabled": hs.Cfg.Azure.ManagedIdentityEnabled,
},
"caching": map[string]bool{
"enabled": hs.Cfg.SectionWithEnvOverrides("caching").Key("enabled").MustBool(true),
},
}
return jsonObj, nil