feat(plugins): progress on plugins page

This commit is contained in:
Torkel Ödegaard
2016-02-26 18:25:39 +01:00
parent b98e5690eb
commit c148d89004
15 changed files with 266 additions and 119 deletions
+1
View File
@@ -4,6 +4,7 @@ import "github.com/grafana/grafana/pkg/plugins"
type PluginSetting struct {
Name string `json:"name"`
Type string `json:"type"`
PluginId string `json:"pluginId"`
Enabled bool `json:"enabled"`
Pinned bool `json:"pinned"`
+1
View File
@@ -42,6 +42,7 @@ func GetPluginSettingById(c *middleware.Context) Response {
return ApiError(404, "Plugin not found, no installed plugin with that id", nil)
} else {
dto := &dtos.PluginSetting{
Type: def.Type,
PluginId: def.Id,
Name: def.Name,
Info: &def.Info,