|
|
@ -58,6 +58,8 @@ export class GraphRenderer { |
|
|
|
|
|
|
|
|
|
|
|
constructor($elem: JQuery<HTMLElement>, timeSrv, contextSrv, scope) { |
|
|
|
constructor($elem: JQuery<HTMLElement>, timeSrv, contextSrv, scope) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
this.$elem = $elem; |
|
|
|
this.$elem = $elem; |
|
|
|
this.ctrl = scope.ctrl; |
|
|
|
this.ctrl = scope.ctrl; |
|
|
@ -164,7 +166,7 @@ export class GraphRenderer { |
|
|
|
// this.eventManager.updateTime(selectionEvent.xaxis);
|
|
|
|
// this.eventManager.updateTime(selectionEvent.xaxis);
|
|
|
|
// }, 100);
|
|
|
|
// }, 100);
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.scope.$apply(function() { |
|
|
|
this.scope.$apply(() => { |
|
|
|
this.timeSrv.setTime({ |
|
|
|
this.timeSrv.setTime({ |
|
|
|
from: moment.utc(selectionEvent.xaxis.from), |
|
|
|
from: moment.utc(selectionEvent.xaxis.from), |
|
|
|
to: moment.utc(selectionEvent.xaxis.to), |
|
|
|
to: moment.utc(selectionEvent.xaxis.to), |
|
|
|