Expressions: Remove feature toggle (#30316)

* Expressions: remove feature toggle, add experimental badge
* Make button only show for backend and mixed data sources

Co-authored-by: Peter Holmberg <peter.hlmbrg@gmail.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Kyle Brandt
2021-01-19 14:18:06 -05:00
committed by GitHub
co-authored by Peter Holmberg Torkel Ödegaard
parent 4aa9aa8e12
commit d4edcd1838
7 changed files with 109 additions and 53 deletions
-5
View File
@@ -341,11 +341,6 @@ type Cfg struct {
AutoAssignOrgRole string
}
// IsExpressionsEnabled returns whether the expressions feature is enabled.
func (cfg Cfg) IsExpressionsEnabled() bool {
return cfg.FeatureToggles["expressions"]
}
// IsLiveEnabled returns if grafana live should be enabled
func (cfg Cfg) IsLiveEnabled() bool {
return cfg.FeatureToggles["live"]