feat(plugins): changed plugin schema, pluginType -> type, type -> id
This commit is contained in:
@@ -22,7 +22,7 @@ func GetAppPlugins(c *middleware.Context) Response {
|
||||
Enabled: app.Enabled,
|
||||
Pinned: app.Pinned,
|
||||
Module: app.Module,
|
||||
Info: app.Info,
|
||||
Info: &app.Info,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
|
||||
|
||||
panels := map[string]interface{}{}
|
||||
for _, panel := range enabledPlugins.Panels {
|
||||
panels[panel.Type] = map[string]interface{}{
|
||||
panels[panel.Id] = map[string]interface{}{
|
||||
"module": panel.Module,
|
||||
"name": panel.Name,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user