mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* [APM] Set minimum value for `IsAboveField`
* Always display the value
* Clean up
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9005813b78
)
Co-authored-by: Katerina Patticha <aikaterini.patticha@elastic.co>
This commit is contained in:
parent
dc6b0bf1da
commit
5161a76289
1 changed files with 3 additions and 2 deletions
|
@ -142,14 +142,15 @@ export function IsAboveField({
|
|||
}) {
|
||||
return (
|
||||
<PopoverExpression
|
||||
value={value ? `${value.toString()}${unit}` : ''}
|
||||
value={`${value}${unit}`}
|
||||
title={i18n.translate(
|
||||
'xpack.apm.transactionErrorRateAlertTrigger.isAbove',
|
||||
{ defaultMessage: 'is above' }
|
||||
)}
|
||||
>
|
||||
<EuiFieldNumber
|
||||
value={value ?? ''}
|
||||
min={0}
|
||||
value={value ?? 0}
|
||||
onChange={(e) => onChange(parseInt(e.target.value, 10))}
|
||||
append={unit}
|
||||
compressed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue