add pluginBundle support
A plugnBundle is meta plugin that has a set of dependent plugins to enable. This commit includes a plugin.json for a default "core" bundle that enables all of the shipped panels and datasources.
This commit is contained in:
+4
-1
@@ -62,7 +62,10 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
|
||||
})
|
||||
}
|
||||
|
||||
for _, plugin := range plugins.ExternalPlugins {
|
||||
//TODO(awoods): query DB to get list of the users plugin preferences.
|
||||
orgPlugins := map[string]m.PluginBundle{}
|
||||
enabledPlugins := plugins.GetEnabledPlugins(orgPlugins)
|
||||
for _, plugin := range enabledPlugins.ExternalPlugins {
|
||||
for _, js := range plugin.Js {
|
||||
data.PluginJs = append(data.PluginJs, js.Module)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user