mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #12392 from dehrax/12248-fix
Fix selecting current dashboard from search does not reload dashboard
This commit is contained in:
commit
98a7f258af
@ -63,7 +63,8 @@ export class SearchResultsCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onItemClick(item) {
|
onItemClick(item) {
|
||||||
if (this.$location.path().indexOf(item.url) > -1) {
|
//Check if one string can be found in the other
|
||||||
|
if (this.$location.path().indexOf(item.url) > -1 || item.url.indexOf(this.$location.path()) > -1) {
|
||||||
appEvents.emit('hide-dash-search');
|
appEvents.emit('hide-dash-search');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user