dashboard: Dashboard folder page wip #10083

This commit is contained in:
Marcus Efraimsson
2017-12-06 14:11:25 +01:00
parent 5894b8f4e0
commit dd3c9da009
9 changed files with 120 additions and 82 deletions

View File

@@ -154,12 +154,12 @@ export class SearchSrv {
}
search(options) {
if (!options.query && (!options.tag || options.tag.length === 0) && !options.starred) {
if (!options.folderIds && !options.query && (!options.tag || options.tag.length === 0) && !options.starred) {
return this.browse(options);
}
let query = _.clone(options);
query.folderIds = [];
query.folderIds = options.folderIds || [];
query.type = 'dash-db';
return this.backendSrv.search(query).then(results => {