mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -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 | |
|
| `name` | string | No | |
|
||||||
| `role` | string | No | |
|
| `role` | string | No | |
|
||||||
| `type` | string | No | |
|
| `type` | string | No | |
|
||||||
|
| `icon` | string | No | |
|
||||||
|
|
||||||
## info
|
## info
|
||||||
|
|
||||||
|
@ -104,6 +104,7 @@ func getAppLinks(c *models.ReqContext) ([]*dtos.NavLink, error) {
|
|||||||
Text: include.Name,
|
Text: include.Name,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
link.Icon = include.Icon
|
||||||
appLink.Children = append(appLink.Children, link)
|
appLink.Children = append(appLink.Children, link)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +133,7 @@ type PluginInclude struct {
|
|||||||
AddToNav bool `json:"addToNav"`
|
AddToNav bool `json:"addToNav"`
|
||||||
DefaultNav bool `json:"defaultNav"`
|
DefaultNav bool `json:"defaultNav"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
|
Icon string `json:"icon"`
|
||||||
|
|
||||||
Id string `json:"-"`
|
Id string `json:"-"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user