config_ctrl.ts 488 B

1234567891011121314151617181920
  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.graphiteVersion = this.current.jsonData.graphiteVersion || '0.9';
  10. }
  11. graphiteVersions = [
  12. {name: '0.9.x', value: '0.9'},
  13. {name: '1.0.x', value: '1.0'},
  14. ];
  15. }