feat(plugins): changed plugin schema, pluginType -> type, type -> id

This commit is contained in:
Torkel Ödegaard
2016-01-08 23:15:44 +01:00
parent 7a8b3c419b
commit 3bb20dbf2e
23 changed files with 79 additions and 203 deletions
+1 -1
View File
@@ -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,
}
}
+1 -1
View File
@@ -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,
}