Plugins: Catalog force enable via config and remove enterprise plugin options (#34358)

* force enable catalog based on backend config

* update comments

* chore(plugin-catalog): remove config page in favour of backend flag

* docs(plugin-catalog): update readme

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
Will Browne
2021-05-19 10:22:31 +02:00
committed by GitHub
co-authored by Jack Westbrook
parent 354aa54a33
commit 4e31169a43
9 changed files with 20 additions and 118 deletions
+5
View File
@@ -84,6 +84,11 @@ func (app *AppPlugin) InitApp(panels map[string]*PanelPlugin, dataSources map[st
cfg *setting.Cfg) []*PluginStaticRoute {
staticRoutes := app.InitFrontendPlugin(cfg)
// force enable bundled catalog app
if app.Id == "grafana-plugin-catalog-app" && cfg.CatalogAppEnabled {
app.AutoEnabled = true
}
// check if we have child panels
for _, panel := range panels {
if strings.HasPrefix(panel.PluginDir, app.PluginDir) {