[Logs UI] Tweak copy in log alerts dialog (#64645)

This commit is contained in:
Alejandro Fernández 2020-05-04 13:37:54 +02:00 committed by GitHub
parent 34cccedc8e
commit 4c57ebb7cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}>
@ -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>
);
};