Merge pull request #12392 from dehrax/12248-fix

Fix selecting current dashboard from search does not reload dashboard
This commit is contained in:
Marcus Efraimsson 2018-06-25 15:21:24 +02:00 committed by GitHub
commit 98a7f258af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,8 @@ export class SearchResultsCtrl {
}
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');
}
}