mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Connections: Pass keywords from the backend to CommandPalette (#80276)
* pass keywords from the backend to CommandPalette * add csv and json to keywords
This commit is contained in:
@@ -67,6 +67,7 @@ type NavLink struct {
|
||||
EmptyMessageId string `json:"emptyMessageId,omitempty"`
|
||||
PluginID string `json:"pluginId,omitempty"` // (Optional) The ID of the plugin that registered nav link (e.g. as a standalone plugin page)
|
||||
IsCreateAction bool `json:"isCreateAction,omitempty"`
|
||||
Keywords []string `json:"keywords,omitempty"`
|
||||
}
|
||||
|
||||
func (node *NavLink) Sort() {
|
||||
|
||||
@@ -500,6 +500,7 @@ func (s *ServiceImpl) buildDataConnectionsNavLink(c *contextmodel.ReqContext) *n
|
||||
SubTitle: "Browse and create new connections",
|
||||
Url: baseUrl + "/add-new-connection",
|
||||
Children: []*navtree.NavLink{},
|
||||
Keywords: []string{"csv", "graphite", "json", "loki", "prometheus", "sql", "tempo"},
|
||||
})
|
||||
|
||||
// Data sources
|
||||
|
||||
Reference in New Issue
Block a user