mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Plugins: Add support for includes' icon (#29416)
* Plugins: Add support for includes' icon * Docs: Add plugin includes' icon reference
This commit is contained in:
parent
26a41ecc1c
commit
c22a39ab2d
@ -68,6 +68,7 @@ Plugin dependencies.
|
||||
| `name` | string | No | |
|
||||
| `role` | string | No | |
|
||||
| `type` | string | No | |
|
||||
| `icon` | string | No | |
|
||||
|
||||
## info
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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:"-"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user