فهرست منبع

fixed so default is all and general only show dashboards

Patrick O'Carroll 7 سال پیش
والد
کامیت
d650dc94c9
2فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 4 3
      public/app/plugins/panel/dashlist/editor.html
  2. 2 1
      public/app/plugins/panel/dashlist/module.ts

+ 4 - 3
public/app/plugins/panel/dashlist/editor.html

@@ -23,10 +23,11 @@
     </div>
 
     <div class="gf-form">
-      <folder-picker  root-name="All"
-                      initial-folder-id="ctrl.panel.folderId"
+      <folder-picker  initial-folder-id="ctrl.panel.folderId"
 											on-change="ctrl.onFolderChange($folder)"
-											label-class="width-6">
+                      label-class="width-6"
+                      initial-title="'All'"
+                      enable-reset="true">
 			</folder-picker>
     </div>
 

+ 2 - 1
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 => {