Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
EuiSpacer,
EuiSwitch,
EuiTitle,
EuiLink,
} from '@elastic/eui';
import { RestoreSettings } from '../../../../../common/types';
import { REMOVE_INDEX_SETTINGS_SUGGESTIONS } from '../../../constants';
Expand Down Expand Up @@ -57,6 +58,16 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
}))
);

// Index settings doc link
const indexSettingsDocLink = (
<EuiLink href={documentationLinksService.getIndexSettingsUrl()} target="_blank">
<FormattedMessage
id="xpack.snapshotRestore.restoreForm.stepSettings.indexSettingsDocLinkText"
defaultMessage="Learn more."
/>
</EuiLink>
);

return (
<div className="snapshotRestore__restoreForm__stepSettings">
{/* Step title and doc link */}
Expand Down Expand Up @@ -104,7 +115,10 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
description={
<FormattedMessage
id="xpack.snapshotRestore.restoreForm.stepSettings.indexSettingsDescription"
defaultMessage="Overrides index settings during restore."
defaultMessage="Overrides index settings during restore. {docLink}"
values={{
docLink: indexSettingsDocLink,
}}
/>
}
idAria="stepSettingsIndexSettingsDescription"
Expand Down Expand Up @@ -215,7 +229,10 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
description={
<FormattedMessage
id="xpack.snapshotRestore.restoreForm.stepSettings.ignoreIndexSettingsDescription"
defaultMessage="Resets selected settings to default during restore. "
defaultMessage="Resets selected settings to default during restore. {docLink}"
values={{
docLink: indexSettingsDocLink,
}}
/>
}
idAria="stepSettingsIgnoreIndexSettingsDescription"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class DocumentationLinksService {
public getRestoreIndexSettingsUrl() {
return `${this.esDocBasePath}/modules-snapshots.html#_changing_index_settings_during_restore`;
}

public getIndexSettingsUrl() {
return `${this.esDocBasePath}/index-modules.html`;
}
}

export const documentationLinksService = new DocumentationLinksService();