Browse Source

rename searchable prop

Erik Sundell 7 năm trước cách đây
mục cha
commit
ed673d35f5

+ 3 - 3
public/app/plugins/datasource/stackdriver/components/StackdriverPicker.tsx

@@ -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'}

+ 3 - 3
public/app/plugins/datasource/stackdriver/partials/query.aggregation.html

@@ -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"

+ 2 - 2
public/app/plugins/datasource/stackdriver/partials/query.filter.html

@@ -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>

+ 1 - 1
public/app/plugins/datasource/stackdriver/query_ctrl.ts

@@ -67,7 +67,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
       'options',
       'onChange',
       'selected',
-      'searchable',
+      'isSearchable',
       'className',
       'placeholder',
       'groupName',