From 440d3bb04fb87e567b251796d744aa525019f28a Mon Sep 17 00:00:00 2001 From: Jade McGough Date: Mon, 7 Nov 2016 15:37:42 -0800 Subject: [PATCH] #382 - hide percent sign for non-percentile rules --- ui/src/kapacitor/components/ValuesSection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/kapacitor/components/ValuesSection.js b/ui/src/kapacitor/components/ValuesSection.js index c80e0e4da..d3b8f0f74 100644 --- a/ui/src/kapacitor/components/ValuesSection.js +++ b/ui/src/kapacitor/components/ValuesSection.js @@ -156,7 +156,8 @@ const Relative = React.createClass({ before is - this.input = r} defaultValue={value} onKeyUp={this.handleInputChange}>% + this.input = r} defaultValue={value} onKeyUp={this.handleInputChange}> + { change === CHANGES[1] ? '%' : '' } ); },