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 @@ -128,7 +128,7 @@ export const AutoFollowPatternList = injectI18n(
</EuiFlexItem>
</EuiFlexGroup>

<EuiSpacer />
<EuiSpacer size="m" />
</Fragment>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
import { getIndexListUri } from '../../../../../../../../index_management/public/services/navigation';

import {
EuiButton,
EuiButtonEmpty,
EuiCodeEditor,
EuiDescriptionList,
Expand All @@ -23,7 +24,6 @@ import {
EuiFlyoutHeader,
EuiHealth,
EuiIcon,
EuiLink,
EuiLoadingSpinner,
EuiSpacer,
EuiText,
Expand All @@ -48,7 +48,6 @@ export class DetailPanelUi extends Component {
renderFollowerIndex() {
const {
followerIndex: {
name,
remoteCluster,
leaderIndex,
isPaused,
Expand All @@ -66,8 +65,6 @@ export class DetailPanelUi extends Component {
},
} = this.props;

const indexManagementUri = getIndexListUri(`name:${name}`);

return (
<Fragment>
<EuiFlyoutBody>
Expand Down Expand Up @@ -324,15 +321,6 @@ export class DetailPanelUi extends Component {

<EuiSpacer size="l" />

<EuiLink
href={indexManagementUri}
>
<FormattedMessage
id="xpack.crossClusterReplication.followerIndexDetailPanel.viewIndexLink"
defaultMessage="View your follower index in Index Management"
/>
</EuiLink>

{shards && shards.map((shard, i) => (
<Fragment key={i}>
<EuiSpacer size="m" />
Expand Down Expand Up @@ -436,6 +424,8 @@ export class DetailPanelUi extends Component {
closeDetailPanel,
} = this.props;

const indexManagementUri = getIndexListUri(`name:${followerIndex.name}`);

return (
<EuiFlyoutFooter>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
Expand All @@ -452,22 +442,37 @@ export class DetailPanelUi extends Component {
</EuiButtonEmpty>
</EuiFlexItem>

{followerIndex && (
<EuiFlexItem grow={false}>
<ContextMenu
iconSide="left"
iconType="arrowUp"
anchorPosition="upRight"
label={(
<EuiFlexItem grow={false}>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButton
href={indexManagementUri}
>
<FormattedMessage
id="xpack.crossClusterReplication.followerIndexDetailPanel.manageButtonLabel"
defaultMessage="Manage"
id="xpack.crossClusterReplication.followerIndexDetailPanel.viewIndexLink"
defaultMessage="View in Index Management"
/>
)}
followerIndices={[followerIndex]}
/>
</EuiFlexItem>
)}
</EuiButton>
</EuiFlexItem>

{followerIndex && (
<EuiFlexItem grow={false}>
<ContextMenu
iconSide="left"
iconType="arrowUp"
anchorPosition="upRight"
label={(
<FormattedMessage
id="xpack.crossClusterReplication.followerIndexDetailPanel.manageButtonLabel"
defaultMessage="Manage"
/>
)}
followerIndices={[followerIndex]}
/>
</EuiFlexItem>
)}
</EuiFlexGroup>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlyoutFooter>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const FollowerIndicesList = injectI18n(
</EuiFlexItem>
</EuiFlexGroup>

<EuiSpacer />
<EuiSpacer size="m" />
</Fragment>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,16 @@ Array [
class="euiFormHelpText euiFormRow__text"
id="mockId-help"
>
An IP address or host name, followed by the transport port of the remote cluster.
An IP address or host name, followed by the
<a
class="euiLink euiLink--primary"
href="undefinedguide/en/elasticsearch/reference/undefined/modules-transport.html"
rel="noopener noreferrer"
target="_blank"
>
transport port
</a>
of the remote cluster.
</div>
</div>
</div>
Expand Down Expand Up @@ -430,7 +439,16 @@ Array [
class="euiFormHelpText euiFormRow__text"
id="mockId-help"
>
An IP address or host name, followed by the transport port of the remote cluster.
An IP address or host name, followed by the
<a
class="euiLink euiLink--primary"
href="undefinedguide/en/elasticsearch/reference/undefined/modules-transport.html"
rel="noopener noreferrer"
target="_blank"
>
transport port
</a>
of the remote cluster.
</div>
</div>,
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ import {
EuiTitle,
} from '@elastic/eui';

import { skippingDisconnectedClustersUrl } from '../../../services/documentation_links';
import {
skippingDisconnectedClustersUrl,
transportPortUrl,
} from '../../../services/documentation_links';
import { validateName, validateSeeds, validateSeed } from './validators';

const defaultFields = {
Expand Down Expand Up @@ -264,7 +267,17 @@ export const RemoteClusterForm = injectI18n(
helpText={(
<FormattedMessage
id="xpack.remoteClusters.remoteClusterForm.sectionSeedsHelpText"
defaultMessage="An IP address or host name, followed by the transport port of the remote cluster."
defaultMessage="An IP address or host name, followed by the {transportPort} of the remote cluster."
values={{
transportPort: (
<EuiLink href={transportPortUrl} target="_blank">
<FormattedMessage
id="xpack.remoteClusters.remoteClusterForm.sectionSeedsHelpText.transportPortLinkText"
defaultMessage="transport port"
/>
</EuiLink>
),
}}
/>
)}
isInvalid={showErrors}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ const esBase = `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LIN

export const skippingDisconnectedClustersUrl = `${esBase}/modules-cross-cluster-search.html#_skipping_disconnected_clusters`;
export const remoteClustersUrl = `${esBase}/modules-remote-clusters.html`;
export const transportPortUrl = `${esBase}/modules-transport.html`;