mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
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:
co-authored by
Jack Westbrook
parent
354aa54a33
commit
4e31169a43
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user