Skip to content

Commit

Permalink
- change text from roles to privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-goldstein committed Feb 4, 2023
1 parent cbb8cde commit ac02dc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ErrorsPopoverComponent: React.FC<Props> = ({ addSuccessToast, errorSummary

<p>{i18n.ERRORS_MAY_OCCUR}</p>

<span>{i18n.THE_FOLLOWING_ROLES_ARE_REQUIRED}</span>
<span>{i18n.THE_FOLLOWING_PRIVILEGES_ARE_REQUIRED}</span>
<ul>
<li>
<EuiCode>{i18n.MONITOR}</EuiCode> {i18n.OR} <EuiCode>{i18n.MANAGE}</EuiCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ERRORS_MAY_OCCUR = i18n.translate(
'ecsDataQualityDashboard.errors.errorMayOccurLabel',
{
defaultMessage:
"Errors may occur when pattern or index metadata is temporarily unavailable, or because you don't have the roles required for access",
"Errors may occur when pattern or index metadata is temporarily unavailable, or because you don't have the privileges required for access",
}
);

Expand All @@ -63,10 +63,10 @@ export const READ_CROSS_CLUSTER = i18n.translate(
}
);

export const THE_FOLLOWING_ROLES_ARE_REQUIRED = i18n.translate(
'ecsDataQualityDashboard.errors.theFollowingRolesLabel',
export const THE_FOLLOWING_PRIVILEGES_ARE_REQUIRED = i18n.translate(
'ecsDataQualityDashboard.errors.theFollowingPrivilegesLabel',
{
defaultMessage: 'The following roles are required to check an index:',
defaultMessage: 'The following privileges are required to check an index:',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ErrorEmptyPromptComponent: React.FC<Props> = ({ title }) => (
<EuiCallOut color="danger" size="s" title={title}>
<p>{i18n.ERRORS_MAY_OCCUR}</p>

<span>{i18n.THE_FOLLOWING_ROLES_ARE_REQUIRED}</span>
<span>{i18n.THE_FOLLOWING_PRIVILEGES_ARE_REQUIRED}</span>
<ul>
<li>
<EuiCode>{i18n.MONITOR}</EuiCode> {i18n.OR} <EuiCode>{i18n.MANAGE}</EuiCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
OR,
READ,
READ_CROSS_CLUSTER,
THE_FOLLOWING_ROLES_ARE_REQUIRED,
THE_FOLLOWING_PRIVILEGES_ARE_REQUIRED,
VIEW_INDEX_METADATA,
} from '../../data_quality_summary/errors_popover/translations';
import {
Expand Down Expand Up @@ -176,7 +176,7 @@ ${ERRORS_CALLOUT_SUMMARY}
${ERRORS_MAY_OCCUR}
${THE_FOLLOWING_ROLES_ARE_REQUIRED}
${THE_FOLLOWING_PRIVILEGES_ARE_REQUIRED}
- \`${MONITOR}\` ${OR} \`${MANAGE}\`
- \`${VIEW_INDEX_METADATA}\`
- \`${READ}\` ${OR} \`${READ_CROSS_CLUSTER}\`
Expand Down

0 comments on commit ac02dc6

Please sign in to comment.