From 937b26f3fd77cf42cd994547b00103556e68abfa Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Thu, 31 May 2018 10:39:47 +0200 Subject: [PATCH 1/2] added s to folderId in params --- public/app/plugins/panel/dashlist/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/dashlist/module.ts b/public/app/plugins/panel/dashlist/module.ts index dbcdb10d4ac..ad80bfbf384 100644 --- a/public/app/plugins/panel/dashlist/module.ts +++ b/public/app/plugins/panel/dashlist/module.ts @@ -85,7 +85,7 @@ class DashListCtrl extends PanelCtrl { limit: this.panel.limit, query: this.panel.query, tag: this.panel.tags, - folderId: this.panel.folderId, + folderIds: this.panel.folderId, }; return this.backendSrv.search(params).then(result => { From d650dc94c9c6e827291d94c86ad80a761c7bb285 Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Mon, 4 Jun 2018 17:25:20 +0200 Subject: [PATCH 2/2] fixed so default is all and general only show dashboards --- public/app/plugins/panel/dashlist/editor.html | 7 ++++--- public/app/plugins/panel/dashlist/module.ts | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/panel/dashlist/editor.html b/public/app/plugins/panel/dashlist/editor.html index d1f67916e40..a9265bf2a14 100644 --- a/public/app/plugins/panel/dashlist/editor.html +++ b/public/app/plugins/panel/dashlist/editor.html @@ -23,10 +23,11 @@
- + label-class="width-6" + initial-title="'All'" + enable-reset="true">
diff --git a/public/app/plugins/panel/dashlist/module.ts b/public/app/plugins/panel/dashlist/module.ts index ad80bfbf384..d9d0f7789ac 100644 --- a/public/app/plugins/panel/dashlist/module.ts +++ b/public/app/plugins/panel/dashlist/module.ts @@ -17,7 +17,7 @@ class DashListCtrl extends PanelCtrl { search: false, starred: true, headings: true, - folderId: 0, + folderId: null, }; /** @ngInject */ @@ -86,6 +86,7 @@ class DashListCtrl extends PanelCtrl { query: this.panel.query, tag: this.panel.tags, folderIds: this.panel.folderId, + type: 'dash-db', }; return this.backendSrv.search(params).then(result => {