2017-08-07 16:10:59 +03:00
|
|
|
///<reference path="../../../headers/common.d.ts" />
|
|
|
|
|
|
|
|
|
|
import angular from 'angular';
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
|
|
|
|
|
export class GraphiteConfigCtrl {
|
|
|
|
|
static templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
|
|
|
|
|
current: any;
|
|
|
|
|
|
|
|
|
|
/** @ngInject */
|
|
|
|
|
constructor($scope) {
|
2017-09-04 10:28:48 +02:00
|
|
|
this.current.jsonData = this.current.jsonData || {};
|
2017-08-07 16:10:59 +03:00
|
|
|
this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
graphiteVersions = [
|
|
|
|
|
{name: '0.9.x', value: '0.9'},
|
|
|
|
|
{name: '1.0.x', value: '1.0'},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|