Added migrations module for target format converting.
This commit is contained in:
@@ -2,6 +2,7 @@ import {QueryCtrl} from 'app/plugins/sdk';
|
||||
import _ from 'lodash';
|
||||
import * as utils from './utils';
|
||||
import * as metricFunctions from './metricFunctions';
|
||||
import * as migrations from './migrations';
|
||||
|
||||
import './add-metric-function.directive';
|
||||
import './metric-function-editor.directive';
|
||||
@@ -32,6 +33,8 @@ export class ZabbixQueryController extends QueryCtrl {
|
||||
|
||||
this.init = function() {
|
||||
|
||||
this.target = migrations.migrate(this.target);
|
||||
|
||||
this.templateSrv = templateSrv;
|
||||
var target = this.target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user