Renamed Thresholds to ThresholdsEditor

This commit is contained in:
Hugo Häggmark
2019-01-10 10:43:18 +01:00
parent 1581662a6c
commit 0b6e21e9ac
4 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ import { PanelOptionsProps } from '@grafana/ui';
import { defaultProps } from 'app/plugins/panel/gauge/GaugePanelOptions'; import { defaultProps } from 'app/plugins/panel/gauge/GaugePanelOptions';
import { Options } from 'app/plugins/panel/gauge/types'; import { Options } from 'app/plugins/panel/gauge/types';
import { BasicGaugeColor } from 'app/types'; import { BasicGaugeColor } from 'app/types';
import { Thresholds } from './Thresholds'; import { ThresholdsEditor } from './Thresholds';
const setup = (propOverrides?: object) => { const setup = (propOverrides?: object) => {
const props: PanelOptionsProps<Options> = { const props: PanelOptionsProps<Options> = {
@@ -17,7 +17,7 @@ const setup = (propOverrides?: object) => {
Object.assign(props, propOverrides); Object.assign(props, propOverrides);
return shallow(<Thresholds {...props} />).instance() as Thresholds; return shallow(<ThresholdsEditor {...props} />).instance() as ThresholdsEditor;
}; };
describe('Add threshold', () => { describe('Add threshold', () => {

View File

@@ -10,7 +10,7 @@ interface State {
baseColor: string; baseColor: string;
} }
export class Thresholds extends PureComponent<PanelOptionsProps<Options>, State> { export class ThresholdsEditor extends PureComponent<PanelOptionsProps<Options>, State> {
constructor(props) { constructor(props) {
super(props); super(props);

View File

@@ -5,4 +5,4 @@ export { CustomScrollbar } from './CustomScrollbar/CustomScrollbar';
export { ColorPicker } from './ColorPicker/ColorPicker'; export { ColorPicker } from './ColorPicker/ColorPicker';
export { SeriesColorPickerPopover } from './ColorPicker/SeriesColorPickerPopover'; export { SeriesColorPickerPopover } from './ColorPicker/SeriesColorPickerPopover';
export { SeriesColorPicker } from './ColorPicker/SeriesColorPicker'; export { SeriesColorPicker } from './ColorPicker/SeriesColorPicker';
export { Thresholds } from './Thresholds/Thresholds'; export { ThresholdsEditor } from './Thresholds/Thresholds';

View File

@@ -1,7 +1,7 @@
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import ValueOptions from 'app/plugins/panel/gauge/ValueOptions'; import ValueOptions from 'app/plugins/panel/gauge/ValueOptions';
import { BasicGaugeColor } from 'app/types'; import { BasicGaugeColor } from 'app/types';
import { PanelOptionsProps, Thresholds } from '@grafana/ui'; import { PanelOptionsProps, ThresholdsEditor } from '@grafana/ui';
import ValueMappings from 'app/plugins/panel/gauge/ValueMappings'; import ValueMappings from 'app/plugins/panel/gauge/ValueMappings';
import { Options } from './types'; import { Options } from './types';
import GaugeOptions from './GaugeOptions'; import GaugeOptions from './GaugeOptions';
@@ -33,7 +33,7 @@ export default class GaugePanelOptions extends PureComponent<PanelOptionsProps<O
<div className="form-section"> <div className="form-section">
<ValueOptions onChange={onChange} options={options} /> <ValueOptions onChange={onChange} options={options} />
<GaugeOptions onChange={onChange} options={options} /> <GaugeOptions onChange={onChange} options={options} />
<Thresholds onChange={onChange} options={options} /> <ThresholdsEditor onChange={onChange} options={options} />
</div> </div>
<div className="form-section"> <div className="form-section">