prometheus: fixed unsaved changes warning when changing time range due to step option on query model was changed in datasource.query code, fixes #9675

This commit is contained in:
Torkel Ödegaard
2017-10-26 11:46:33 +02:00
parent 77331e92b6
commit 74fcb2494a
6 changed files with 10 additions and 18 deletions

View File

@@ -7,14 +7,15 @@ export class DeltaCtrl {
observer: any;
/** @ngInject */
constructor($rootScope) {
const waitForCompile = function(mutations) {
constructor(private $rootScope) {
const waitForCompile = (mutations) => {
if (mutations.length === 1) {
this.$rootScope.appEvent('json-diff-ready');
}
};
this.observer = new MutationObserver(waitForCompile.bind(this));
this.observer = new MutationObserver(waitForCompile);
const observerConfig = {
attributes: true,