Commit ed673d35 by Erik Sundell

rename searchable prop

parent e4d18a19
......@@ -5,7 +5,7 @@ import Select from 'app/core/components/Select/Select';
export interface Props {
onChange: (value: string) => void;
options: any[];
searchable: boolean;
isSearchable: boolean;
selected: string;
placeholder?: string;
className?: string;
......@@ -74,7 +74,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
}
render() {
const { placeholder, className, searchable, onChange } = this.props;
const { placeholder, className, isSearchable, onChange } = this.props;
const { options } = this.state;
const selectedOption = this.getSelectedOption();
......@@ -86,7 +86,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
backspaceRemovesValue={false}
onChange={item => onChange(item.value)}
options={options}
isSearchable={searchable}
isSearchable={isSearchable}
maxMenuHeight={500}
placeholder={placeholder}
noOptionsMessage={() => 'No options found'}
......
......@@ -5,7 +5,7 @@
onChange="ctrl.handleAggregationChange"
selected="ctrl.target.aggregation.crossSeriesReducer"
options="ctrl.aggOptions"
searchable="true"
is-searchable="true"
placeholder="'Select Aggregation'"
className="'width-15'"
template-variables="ctrl.templateSrv.variables"
......@@ -28,7 +28,7 @@
onChange="ctrl.handleAlignmentChange"
selected="ctrl.target.aggregation.perSeriesAligner"
options="ctrl.alignOptions"
searchable="true"
is-searchable="true"
placeholder="'Select Alignment'"
className="'width-15'"
template-variables="ctrl.templateSrv.variables"
......@@ -45,7 +45,7 @@
onChange="ctrl.handleAlignmentPeriodChange"
selected="ctrl.target.aggregation.alignmentPeriod"
options="ctrl.alignmentPeriods"
searchable="true"
is-searchable="true"
placeholder="'Select Alignment'"
className="'width-15'"
template-variables="ctrl.templateSrv.variables"
......
......@@ -5,7 +5,7 @@
onChange="ctrl.handleServiceChange"
selected="ctrl.target.service"
options="ctrl.services"
searchable="false"
is-searchable="false"
placeholder="'Select Services'"
className="'width-15'"
></stackdriver-picker>
......@@ -21,7 +21,7 @@
options="ctrl.getMetricsList()"
template-variables="ctrl.templateSrv.variables"
group-name="'Metric Types'"
searchable="true"
is-searchable="true"
placeholder="'Select Metric'"
className="'width-15'"
></stackdriver-picker>
......
......@@ -67,7 +67,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
'options',
'onChange',
'selected',
'searchable',
'isSearchable',
'className',
'placeholder',
'groupName',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment