Skip to content

Commit

Permalink
Switch all TSVB comboboxes to plain text single selection (elastic#31879
Browse files Browse the repository at this point in the history
)
  • Loading branch information
flash1293 committed Feb 26, 2019
1 parent a38a2e3 commit b761f39
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class ColorRules extends Component {
options={operatorOptions}
selectedOptions={selectedOperatorOption ? [selectedOperatorOption] : []}
onChange={this.handleChange(model, 'operator')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
fullWidth
/>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class DataFormatPicker extends Component {
options={options}
selectedOptions={selectedOption ? [selectedOption] : []}
onChange={this.handleChange}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand All @@ -149,7 +149,7 @@ class DataFormatPicker extends Component {
options={durationInputOptions}
selectedOptions={selectedFrom ? [selectedFrom] : []}
onChange={this.handleDurationChange('from')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand All @@ -166,7 +166,7 @@ class DataFormatPicker extends Component {
options={durationOutputOptions}
selectedOptions={selectedTo ? [selectedTo] : []}
onChange={this.handleDurationChange('to')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down Expand Up @@ -224,7 +224,7 @@ class DataFormatPicker extends Component {
options={options}
selectedOptions={selectedOption ? [selectedOption] : []}
onChange={this.handleChange}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function IconSelect(props) {
options={props.icons}
selectedOptions={selectedIcon ? [selectedIcon] : []}
onChange={props.onChange}
singleSelection={true}
singleSelection={{ asPlainText: true }}
renderOption={renderOption}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function GroupBySelectUi(props) {
options={modeOptions}
selectedOptions={[selectedOption]}
onChange={props.onChange}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const SplitByTermsUi = props => {
options={dirOptions}
selectedOptions={selectedDirectionOption ? [selectedDirectionOption] : []}
onChange={handleSelectChange('terms_direction')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class TableSeriesConfig extends Component {
options={functionOptions}
selectedOptions={selectedAggFuncOption ? [selectedAggFuncOption] : []}
onChange={handleSelectChange('aggregate_function')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
fullWidth
/>
</EuiFormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={chartTypeOptions}
selectedOptions={selectedChartTypeOption ? [selectedChartTypeOption] : []}
onChange={handleSelectChange('chart_type')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand All @@ -126,7 +126,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={stackedOptions}
selectedOptions={selectedStackedOption ? [selectedStackedOption] : []}
onChange={handleSelectChange('stacked')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down Expand Up @@ -206,7 +206,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={chartTypeOptions}
selectedOptions={selectedChartTypeOption ? [selectedChartTypeOption] : []}
onChange={handleSelectChange('chart_type')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand All @@ -223,7 +223,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={stackedOptions}
selectedOptions={selectedStackedOption ? [selectedStackedOption] : []}
onChange={handleSelectChange('stacked')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down Expand Up @@ -366,7 +366,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={splitColorOptions}
selectedOptions={selectedSplitColorOption ? [selectedSplitColorOption] : []}
onChange={handleSelectChange('split_color_mode')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down Expand Up @@ -444,7 +444,7 @@ const TimeseriesConfig = injectI18n(function (props) {
options={positionOptions}
selectedOptions={selectedAxisPosOption ? [selectedAxisPosOption] : []}
onChange={handleSelectChange('axis_position')}
singleSelection={true}
singleSelection={{ asPlainText: true }}
/>
</EuiFormRow>
</EuiFlexItem>
Expand Down

0 comments on commit b761f39

Please sign in to comment.