ux: made progress on popover forms

This commit is contained in:
Torkel Ödegaard
2017-04-13 18:39:49 +02:00
parent dbeeb32ab6
commit 2f61fc6afe
6 changed files with 65 additions and 53 deletions

View File

@@ -98,6 +98,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
function showAddAnnotationView(timeRange) {
popoverSrv.show({
element: elem[0],
classNames: 'drop-popover drop-popover--form',
position: 'bottom center',
openOn: 'click',
template: '<event-editor panelCtrl="ctrl" timeRange="timeRange"></event-editor>',
@@ -672,7 +673,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
// Create new annotation from time range
let timeRange = ranges.xaxis;
showAddAnnotationView(timeRange);
plot.clearSelection();
//plot.clearSelection();
} else {
scope.$apply(function() {
timeSrv.setTime({