Commit 913f17ee by Torkel Ödegaard

fix(plugin dashboards): fixed issue with plugin dashboard list, fixes #6215

parent a3c91450
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
</span> </span>
</td> </td>
<td> <td>
<span ng-if="dash.imported" bs-tooltip='"Imported revision:" + dash.importedRevision'> <span>
Revision: {{dash.revision}} Revision: {{dash.revision}}
<span ng-if="dash.imported" class="small">(Imported: {{dash.importedRevision}})</span>
<span> <span>
</td> </td>
<td style="text-align: right"> <td style="text-align: right">
...@@ -23,7 +24,8 @@ ...@@ -23,7 +24,8 @@
Import Import
</button> </button>
<button class="btn btn-secondary btn-small" ng-click="ctrl.import(dash, true)" ng-show="dash.imported"> <button class="btn btn-secondary btn-small" ng-click="ctrl.import(dash, true)" ng-show="dash.imported">
Update <span ng-if="dash.revision !== dash.importedRevision">Update</span>
<span ng-if="dash.revision === dash.importedRevision">Re-import</span>
</button> </button>
<button class="btn btn-danger btn-small" ng-click="ctrl.remove(dash)" ng-show="dash.imported"> <button class="btn btn-danger btn-small" ng-click="ctrl.remove(dash)" ng-show="dash.imported">
<i class="fa fa-trash"></i> <i class="fa fa-trash"></i>
......
...@@ -22,7 +22,7 @@ function (_) { ...@@ -22,7 +22,7 @@ function (_) {
bucketAggTypes: [ bucketAggTypes: [
{text: "Terms", value: 'terms', requiresField: true}, {text: "Terms", value: 'terms', requiresField: true},
{text: "Filters", value: 'filters' }, {text: "Filters", value: 'filters' },
{text: "Geo Hash Grid", value: 'geohash_grid', requiresField: true}, {text: "Geo Hash Grid", value: 'geohash_grid', requiresField: true},
{text: "Date Histogram", value: 'date_histogram', requiresField: true}, {text: "Date Histogram", value: 'date_histogram', requiresField: true},
], ],
......
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