config_ctrl.ts 580 B

12345678910111213141516171819202122
  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. {name: '1.1.x', value: '1.1'},
  16. ];
  17. }