diff --git a/client/app/components/ParameterValueInput.jsx b/client/app/components/ParameterValueInput.jsx
index 301e83fc91..0aa2b56abd 100644
--- a/client/app/components/ParameterValueInput.jsx
+++ b/client/app/components/ParameterValueInput.jsx
@@ -1,8 +1,9 @@
-import { isNull, isUndefined } from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { react2angular } from 'react2angular';
import Select from 'antd/lib/select';
+import Input from 'antd/lib/input';
+import InputNumber from 'antd/lib/input-number';
import { DateInput } from './DateInput';
import { DateRangeInput } from './DateRangeInput';
import { DateTimeInput } from './DateTimeInput';
@@ -127,14 +128,24 @@ export class ParameterValueInput extends React.Component {
);
}
+ renderNumberInput() {
+ const { value, onSelect, className } = this.props;
+ return (
+
+ );
+ }
+
renderTextInput() {
- const { value, onSelect, type } = this.props;
+ const { value, onSelect, className } = this.props;
return (
- onSelect(event.target.value)}
+
);
}
@@ -150,6 +161,7 @@ export class ParameterValueInput extends React.Component {
case 'date-range': return this.renderDateRangeInput();
case 'enum': return this.renderEnumInput();
case 'query': return this.renderQueryBasedInput();
+ case 'number': return this.renderNumberInput();
default: return this.renderTextInput();
}
}