From 9ded648bc532cfd5b044097970fbc4b4dab9b489 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Mon, 19 Nov 2018 16:05:15 +0100 Subject: [PATCH] typo fix --- public/app/plugins/panel/gauge/module.tsx | 10 +++++----- public/app/viz/Gauge.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/app/plugins/panel/gauge/module.tsx b/public/app/plugins/panel/gauge/module.tsx index cef89ff7894..ec787d71943 100644 --- a/public/app/plugins/panel/gauge/module.tsx +++ b/public/app/plugins/panel/gauge/module.tsx @@ -10,7 +10,7 @@ export interface Options { decimals: number; prefix: string; stat: string; - suffix: string; + sufix: string; unit: string; } @@ -56,10 +56,10 @@ class GaugeOptions extends PureComponent> { onPrefixChange = event => this.props.onChange({ ...this.props.options, prefix: event.target.value }); - onSuffixChange = event => this.props.onChange({ ...this.props.options, suffix: event.target.value }); + onSufixChange = event => this.props.onChange({ ...this.props.options, sufix: event.target.value }); render() { - const { stat, unit, decimals, prefix, suffix } = this.props.options; + const { stat, unit, decimals, prefix, sufix } = this.props.options; return (
@@ -94,8 +94,8 @@ class GaugeOptions extends PureComponent> {
- - + +
diff --git a/public/app/viz/Gauge.tsx b/public/app/viz/Gauge.tsx index 950b01a96f5..9655c2a39b3 100644 --- a/public/app/viz/Gauge.tsx +++ b/public/app/viz/Gauge.tsx @@ -17,7 +17,7 @@ interface Props { height: number; stat?: string; prefix: string; - suffix: string; + sufix: string; } const colors = ['rgba(50, 172, 45, 0.97)', 'rgba(237, 129, 40, 0.89)', 'rgba(245, 54, 54, 0.9)']; @@ -32,7 +32,7 @@ export class Gauge extends PureComponent { prefix: '', showThresholdMarkers: true, showThresholdLables: false, - suffix: '', + sufix: '', thresholds: [0, 100], }; @@ -45,10 +45,10 @@ export class Gauge extends PureComponent { } formatValue(value) { - const { decimals, prefix, suffix, unit } = this.props; + const { decimals, prefix, sufix, unit } = this.props; const formatFunc = kbn.valueFormats[unit]; - return `${prefix} ${formatFunc(value, decimals)} ${suffix}`; + return `${prefix} ${formatFunc(value, decimals)} ${sufix}`; } draw() {