mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashlist: toggle folders
This commit is contained in:
parent
3dc2e06a33
commit
121d48ec26
@ -34,6 +34,11 @@ export class DashboardListCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initDashboardList(result: any) {
|
initDashboardList(result: any) {
|
||||||
|
if (!result) {
|
||||||
|
this.sections = [];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.sections = result;
|
this.sections = result;
|
||||||
|
|
||||||
for (let section of this.sections) {
|
for (let section of this.sections) {
|
||||||
@ -128,6 +133,10 @@ export class DashboardListCtrl {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleFolder(section) {
|
||||||
|
return this.searchSrv.toggleFolder(section);
|
||||||
|
}
|
||||||
|
|
||||||
// getTags() {
|
// getTags() {
|
||||||
// return this.backendSrv.get('/api/dashboards/tags').then((results) => {
|
// return this.backendSrv.get('/api/dashboards/tags').then((results) => {
|
||||||
// this.tags = results;
|
// this.tags = results;
|
||||||
|
Loading…
Reference in New Issue
Block a user