config_ctrl.ts 524 B

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