mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
set includedAppId of apiPlugins
This commit is contained in:
parent
462608517b
commit
fd52320460
@ -59,6 +59,18 @@ func (app *AppPlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// check if we have child apiPlugins
|
||||
for _, plugin := range ApiPlugins {
|
||||
if strings.HasPrefix(plugin.PluginDir, app.PluginDir) {
|
||||
plugin.IncludedInAppId = app.Id
|
||||
app.Includes = append(app.Includes, AppIncludeInfo{
|
||||
Name: plugin.Name,
|
||||
Id: plugin.Id,
|
||||
Type: plugin.Type,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Apps[app.Id] = app
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user