mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
Navigation: handle cloud id when modifying connections url (#80965)
cloud id is different than onprem... who knew?
This commit is contained in:
parent
113746ee0f
commit
1cb3cc4ad1
@ -30,7 +30,11 @@ function navTreeToActions(navTree: NavModelItem[], parents: NavModelItem[] = [])
|
||||
}
|
||||
|
||||
let urlOrCallback: CommandPaletteAction['url'] = url;
|
||||
if (url && navItem.id === 'connections-add-new-connection') {
|
||||
if (
|
||||
url &&
|
||||
(navItem.id === 'connections-add-new-connection' ||
|
||||
navItem.id === 'standalone-plugin-page-/connections/add-new-connection')
|
||||
) {
|
||||
urlOrCallback = (searchQuery: string) => {
|
||||
const matchingKeyword = keywords?.find((keyword) => keyword.toLowerCase().includes(searchQuery.toLowerCase()));
|
||||
return matchingKeyword ? `${url}?search=${matchingKeyword}` : url;
|
||||
|
Loading…
Reference in New Issue
Block a user