Commit 121d48ec by Daniel Lee

dashlist: toggle folders

parent 3dc2e06a
......@@ -34,6 +34,11 @@ export class DashboardListCtrl {
}
initDashboardList(result: any) {
if (!result) {
this.sections = [];
return;
}
this.sections = result;
for (let section of this.sections) {
......@@ -128,6 +133,10 @@ export class DashboardListCtrl {
});
}
toggleFolder(section) {
return this.searchSrv.toggleFolder(section);
}
// getTags() {
// return this.backendSrv.get('/api/dashboards/tags').then((results) => {
// this.tags = results;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment