Skip to content

Commit

Permalink
[7.x] [Logs UI] Tweak copy in log alerts dialog (#64645) (#65066)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández committed May 7, 2020
1 parent 4619b47 commit 4dadabf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export const DocumentCount: React.FC<Props> = ({ comparator, value, updateCount,
values: { value },
});

const documentCountSuffix = i18n.translate('xpack.infra.logs.alertFlyout.documentCountSuffix', {
defaultMessage: '{value, plural, one {occurs} other {occur}}',
values: { value },
});

return (
<EuiFlexGroup gutterSize="s">
<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -122,6 +127,10 @@ export const DocumentCount: React.FC<Props> = ({ comparator, value, updateCount,
</div>
</EuiPopover>
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiExpression description={documentCountSuffix} value="" />
</EuiFlexItem>
</EuiFlexGroup>
);
};

0 comments on commit 4dadabf

Please sign in to comment.