Parcourir la source

Fixed typo in table, added no filters message, removed default sort on @timestamp from table in guided dashboard

Rashid Khan il y a 12 ans
Parent
commit
b29ffd8347
3 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 2 2
      dashboards/guided.json
  2. 1 0
      panels/filtering/module.html
  3. 1 1
      panels/table/module.html

+ 2 - 2
dashboards/guided.json

@@ -234,7 +234,7 @@
     },
     },
     {
     {
       "title": "Events",
       "title": "Events",
-      "height": "350px",
+      "height": "650px",
       "editable": true,
       "editable": true,
       "collapse": false,
       "collapse": false,
       "collapsable": true,
       "collapsable": true,
@@ -251,7 +251,7 @@
           "pages": 5,
           "pages": 5,
           "offset": 0,
           "offset": 0,
           "sort": [
           "sort": [
-            "@timestamp",
+            "_id",
             "desc"
             "desc"
           ],
           ],
           "style": {
           "style": {

+ 1 - 0
panels/filtering/module.html

@@ -40,6 +40,7 @@
   </style>
   </style>
 
 
   <div class='filtering-container'>
   <div class='filtering-container'>
+    <span ng-show="filterSrv.ids.length == 0"><h5>No filters available</h5></span>
     <div ng-repeat="id in filterSrv.ids" class="small filter-panel-filter" ng-class="{'filter-deselected': !filterSrv.list[id].active}">
     <div ng-repeat="id in filterSrv.ids" class="small filter-panel-filter" ng-class="{'filter-deselected': !filterSrv.list[id].active}">
       <div class="filter-{{filterSrv.list[id].mandate}}" >
       <div class="filter-{{filterSrv.list[id].mandate}}" >
         <strong>{{filterSrv.list[id].type}}</strong> 
         <strong>{{filterSrv.list[id].type}}</strong> 

+ 1 - 1
panels/table/module.html

@@ -39,7 +39,7 @@
           <i ng-click="panel.offset = (panel.offset + panel.size)" ng-show="data.length > panel.offset+panel.size" class='icon-arrow-right pointer'></i>
           <i ng-click="panel.offset = (panel.offset + panel.size)" ng-show="data.length > panel.offset+panel.size" class='icon-arrow-right pointer'></i>
         </div>
         </div>
       </div>
       </div>
-      <div class="small" ng-show="panel.fields.length == 0">No columns configured. You may want to add a <strong>fields panel</strong>, or click the edit button in the top right of this panel to add some columns</div>
+      <div class="small" ng-show="panel.fields.length == 0">No columns configured. You may want to select some from the list on the left. </div>
       <table class="table-hover table table-condensed" ng-style="panel.style">
       <table class="table-hover table table-condensed" ng-style="panel.style">
         <thead ng-show="panel.header">
         <thead ng-show="panel.header">