More work on annotations

pull/85/head
Torkel Odegaard 12 years ago
parent 869bebed6e
commit 79ca016409
  1. 2
      src/app/partials/dasheditor.html
  2. 7
      src/app/partials/loadmetrics.html
  3. 12
      src/app/services/dashboard.js
  4. 2
      src/css/bootstrap.dark.min.css
  5. 2
      src/css/bootstrap.light.min.css
  6. 4
      src/css/less/submenu.less

@ -2,7 +2,7 @@
<div class="pull-right editor-title">Dashboard settings</div> <div class="pull-right editor-title">Dashboard settings</div>
<div ng-model="editor.index" bs-tabs style="text-transform:capitalize;"> <div ng-model="editor.index" bs-tabs style="text-transform:capitalize;">
<div ng-repeat="tab in ['General', 'Rows','Controls', 'Import']" data-title="{{tab}}"> <div ng-repeat="tab in ['General', 'Rows','Controls', 'Metrics', 'Import']" data-title="{{tab}}">
</div> </div>
<div ng-repeat="tab in dashboard.current.nav" data-title="{{tab.type}}"> <div ng-repeat="tab in dashboard.current.nav" data-title="{{tab.type}}">
</div> </div>

@ -1,7 +1,10 @@
<div ng-controller="MetricKeysCtrl" ng-init="init()"> <div ng-controller="MetricKeysCtrl" ng-init="init()">
<h5>Load metrics keys into elastic search</h5> <h5>Load metrics keys into elastic search</h5>
<div class="row-fluid"> <p>
Work in progress...
</p>
<!-- <div class="row-fluid">
<div class="span12"> <div class="span12">
<label class="small">Load metrics recursive starting from this metric path</label> <label class="small">Load metrics recursive starting from this metric path</label>
<input type="text" class="input-xlarge" ng-model="metricPath"> </input> <input type="text" class="input-xlarge" ng-model="metricPath"> </input>
@ -29,5 +32,5 @@
<div class="span12" style="padding-top: 10px;"> <div class="span12" style="padding-top: 10px;">
Metrics indexed: {{metricCounter}} Metrics indexed: {{metricCounter}}
</div> </div>
</div> </div> -->
</div> </div>

@ -27,7 +27,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
failover: false, failover: false,
panel_hints: true, panel_hints: true,
rows: [], rows: [],
pulldowns: [ { type: 'filtering' }, { type: 'annotations' } ], pulldowns: [ { type: 'filtering' }, /*{ type: 'annotations' }*/ ],
nav: [ { type: 'timepicker' } ], nav: [ { type: 'timepicker' } ],
services: {}, services: {},
loader: { loader: {
@ -126,19 +126,17 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
if (!filtering) { if (!filtering) {
dashboard.pulldowns.push({ dashboard.pulldowns.push({
type: 'filtering', type: 'filtering',
enable: false, enable: false
collapse: true
}); });
} }
var annotations = _.findWhere(dashboard.pulldowns, {type: 'annotations'}); /*var annotations = _.findWhere(dashboard.pulldowns, {type: 'annotations'});
if (!annotations) { if (!annotations) {
dashboard.pulldowns.push({ dashboard.pulldowns.push({
type: 'annotations', type: 'annotations',
enable: false, enable: false
collapse: true
}); });
} }*/
return dashboard; return dashboard;
}; };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -20,7 +20,7 @@
.submenu-panel-title { .submenu-panel-title {
float: left; float: left;
text-transform: uppercase; text-transform: uppercase;
padding: 4px 10px 0 0; padding: 4px 10px 3px 0;
} }
.submenu-panel-wrapper { .submenu-panel-wrapper {
@ -28,7 +28,7 @@
} }
.submenu-toggle { .submenu-toggle {
padding: 4px 0 0 4px; padding: 4px 0 3px 8px;
float: left; float: left;
} }

Loading…
Cancel
Save