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:
Ashley Harrison
2024-01-15 11:30:55 +00:00
committed by GitHub
parent 343422537e
commit 15af2e5053
4 changed files with 6 additions and 1 deletions

View File

@@ -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() {

View File

@@ -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