Commit d650dc94 by Patrick O'Carroll

fixed so default is all and general only show dashboards

parent 937b26f3
...@@ -23,10 +23,11 @@ ...@@ -23,10 +23,11 @@
</div> </div>
<div class="gf-form"> <div class="gf-form">
<folder-picker root-name="All" <folder-picker initial-folder-id="ctrl.panel.folderId"
initial-folder-id="ctrl.panel.folderId"
on-change="ctrl.onFolderChange($folder)" on-change="ctrl.onFolderChange($folder)"
label-class="width-6"> label-class="width-6"
initial-title="'All'"
enable-reset="true">
</folder-picker> </folder-picker>
</div> </div>
......
...@@ -17,7 +17,7 @@ class DashListCtrl extends PanelCtrl { ...@@ -17,7 +17,7 @@ class DashListCtrl extends PanelCtrl {
search: false, search: false,
starred: true, starred: true,
headings: true, headings: true,
folderId: 0, folderId: null,
}; };
/** @ngInject */ /** @ngInject */
...@@ -86,6 +86,7 @@ class DashListCtrl extends PanelCtrl { ...@@ -86,6 +86,7 @@ class DashListCtrl extends PanelCtrl {
query: this.panel.query, query: this.panel.query,
tag: this.panel.tags, tag: this.panel.tags,
folderIds: this.panel.folderId, folderIds: this.panel.folderId,
type: 'dash-db',
}; };
return this.backendSrv.search(params).then(result => { return this.backendSrv.search(params).then(result => {
......
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