config_ctrl.ts 545 B

123456789101112131415161718192021
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import angular from 'angular';
  3. import _ from 'lodash';
  4. export class GraphiteConfigCtrl {
  5. static templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
  6. current: any;
  7. /** @ngInject */
  8. constructor($scope) {
  9. this.current.jsonData = this.current.jsonData || {};
  10. this.current.jsonData.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
  11. }
  12. graphiteVersions = [
  13. {name: '0.9.x', value: '0.9'},
  14. {name: '1.0.x', value: '1.0'},
  15. ];
  16. }