diff --git a/config/opensearch_dashboards.yml b/config/opensearch_dashboards.yml index 99df1d808bab..a79081398570 100644 --- a/config/opensearch_dashboards.yml +++ b/config/opensearch_dashboards.yml @@ -247,7 +247,7 @@ # vis_builder.enabled: false # Set the value of this setting to true to enable multiple data source feature. -#data_source.enabled: false +data_source.enabled: true # Set the value of this setting to true to hide local cluster in data source feature. #data_source.hideLocalCluster: false # Set the value of these settings to customize crypto materials to encryption saved credentials diff --git a/src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx b/src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx index 8a03f2494404..d68580ec7efb 100644 --- a/src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx +++ b/src/plugins/data_source_management/public/components/edit_data_source/components/edit_form/edit_data_source_form.tsx @@ -406,11 +406,11 @@ export class EditDataSourceForm extends React.Component { + isDefault = () => { return this.props.isDefault; - } + }; onClickTestConnection = async () => { this.setState({ isLoading: true }); diff --git a/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx b/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx index bca76f4ec1c9..507662085ad7 100644 --- a/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx +++ b/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx @@ -50,7 +50,7 @@ export const Header = ({ const setDefaultAriaLabel = i18n.translate( 'dataSourcesManagement.editDataSource.setDefaultDataSource', { - defaultMessage: 'Set as default Data Source.', + defaultMessage: 'Set as a default Data Source.', } ); @@ -174,7 +174,7 @@ export const Header = ({ {/* Right side buttons */} - {/* Test defaultn button */} + {/* Test default button */} {renderDefaultIcon()} {/* Test connection button */} {renderTestConnectionButton()} diff --git a/src/plugins/data_source_management/public/components/edit_data_source/edit_data_source.tsx b/src/plugins/data_source_management/public/components/edit_data_source/edit_data_source.tsx index 18e7a3e7afc2..46e253b2b85b 100644 --- a/src/plugins/data_source_management/public/components/edit_data_source/edit_data_source.tsx +++ b/src/plugins/data_source_management/public/components/edit_data_source/edit_data_source.tsx @@ -86,7 +86,7 @@ export const EditDataSource: React.FunctionComponent { await uiSettings.set('defaultDataSource', dataSourceID); - } + }; const isDefaultDataSource = uiSettings.get('defaultDataSource', null) === dataSourceID;