dashboard search

This commit is contained in:
Torkel Ödegaard 2017-11-20 13:37:26 +01:00
parent fc1d8416a7
commit 6c5e19c1e0

View File

@ -10,6 +10,9 @@ export class SearchSrv {
search(options) {
if (!options.query) {
options.folderIds = [0];
} else {
options.folderIds = [];
options.type = 'dash-db';
}
return this.backendSrv.search(options).then(results => {
@ -43,7 +46,7 @@ export class SearchSrv {
id: hit.id,
title: hit.title,
items: [],
icon: 'fa fa-folder-open',
icon: 'fa fa-folder',
score: _.keys(sections).length,
};
}