mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Renamed Thresholds to ThresholdsEditor
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user