Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
  • Loading branch information
zhyuanqi committed Mar 19, 2024
1 parent 1823eaa commit 813d4f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/opensearch_dashboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ export class EditDataSourceForm extends React.Component<EditDataSourceProps, Edi
if (this.props.onSetDefaultDataSource) {
await this.props.onSetDefaultDataSource();
}
}
};

isDefault = () => {
isDefault = () => {
return this.props.isDefault;
}
};

onClickTestConnection = async () => {
this.setState({ isLoading: true });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
}
);

Expand Down Expand Up @@ -174,7 +174,7 @@ export const Header = ({
{/* Right side buttons */}
<EuiFlexItem grow={false}>
<EuiFlexGroup alignItems="baseline" gutterSize="m" responsive={false}>
{/* Test defaultn button */}
{/* Test default button */}
<EuiFlexItem grow={false}>{renderDefaultIcon()}</EuiFlexItem>
{/* Test connection button */}
<EuiFlexItem grow={false}>{renderTestConnectionButton()}</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const EditDataSource: React.FunctionComponent<RouteComponentProps<{ id: s

const handleSetDefault = async () => {
await uiSettings.set('defaultDataSource', dataSourceID);
}
};

const isDefaultDataSource = uiSettings.get('defaultDataSource', null) === dataSourceID;

Expand Down

0 comments on commit 813d4f3

Please sign in to comment.