diff --git a/docs/sources/developers/plugins/metadata.md b/docs/sources/developers/plugins/metadata.md index 9a40f8c732a..1a6dad06ea3 100644 --- a/docs/sources/developers/plugins/metadata.md +++ b/docs/sources/developers/plugins/metadata.md @@ -68,6 +68,7 @@ Plugin dependencies. | `name` | string | No | | | `role` | string | No | | | `type` | string | No | | +| `icon` | string | No | | ## info diff --git a/pkg/api/index.go b/pkg/api/index.go index e88d1e00318..5e66015471b 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -104,6 +104,7 @@ func getAppLinks(c *models.ReqContext) ([]*dtos.NavLink, error) { Text: include.Name, } } + link.Icon = include.Icon appLink.Children = append(appLink.Children, link) } diff --git a/pkg/plugins/models.go b/pkg/plugins/models.go index 53120f5fc01..3b2574595f1 100644 --- a/pkg/plugins/models.go +++ b/pkg/plugins/models.go @@ -133,6 +133,7 @@ type PluginInclude struct { AddToNav bool `json:"addToNav"` DefaultNav bool `json:"defaultNav"` Slug string `json:"slug"` + Icon string `json:"icon"` Id string `json:"-"` }