Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Nov 9, 2021
1 parent 6dbf556 commit f693ab9
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,30 @@ const NoEprCallout: FunctionComponent<{ statusCode?: number }> = ({
}) => {
let titleMessage;
let descriptionMessage;
if (statusCode === 500) {
titleMessage = i18n.translate('xpack.fleet.epmList.eprUnavailable400500CalloutTitle', {
if (statusCode === 502) {
titleMessage = i18n.translate('xpack.fleet.epmList.eprUnavailableBadGatewayCalloutTitle', {
defaultMessage:
'Kibana cannot connect to the Elastic Package Registry, which provides Elastic Agent integrations\n',
'Kibana cannot reach the Elastic Package Registry, which provides Elastic Agent integrations\n',
});
descriptionMessage = (
<FormattedMessage
id="xpack.fleet.epmList.eprUnavailableCallout400500TitleMessage"
defaultMessage="Ensure the {registryproxy} or {onpremregistry} is configured correctly, or try again later."
id="xpack.fleet.epmList.eprUnavailableCallouBdGatewaytTitleMessage"
defaultMessage="To view these integrations, configure a {registryproxy} or host {onpremregistry}."
values={{
registryproxy: <ProxyLink />,
onpremregistry: <OnPremLink />,
}}
/>
);
} else {
titleMessage = i18n.translate('xpack.fleet.epmList.eprUnavailableBadGatewayCalloutTitle', {
titleMessage = i18n.translate('xpack.fleet.epmList.eprUnavailable400500CalloutTitle', {
defaultMessage:
'Kibana cannot reach the Elastic Package Registry, which provides Elastic Agent integrations\n',
'Kibana cannot connect to the Elastic Package Registry, which provides Elastic Agent integrations\n',
});
descriptionMessage = (
<FormattedMessage
id="xpack.fleet.epmList.eprUnavailableCallouBdGatewaytTitleMessage"
defaultMessage="To view these integrations, configure a {registryproxy} or host {onpremregistry}."
id="xpack.fleet.epmList.eprUnavailableCallout400500TitleMessage"
defaultMessage="Ensure the {registryproxy} or {onpremregistry} is configured correctly, or try again later."
values={{
registryproxy: <ProxyLink />,
onpremregistry: <OnPremLink />,
Expand Down

0 comments on commit f693ab9

Please sign in to comment.