uptime - adjust synthetics service sync errors behavior (#125169)

This commit is contained in:
Dominique Clarke 2022-02-10 18:28:54 -05:00 committed by GitHub
parent 49f8b2eff6
commit e63eeb65be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,20 +110,22 @@ export const ActionBar = ({ monitor, isValid, onSave, onTestNow, testRun }: Acti
},
})}
</p>
<p>
{status
? i18n.translate('xpack.uptime.monitorManagement.service.error.status', {
defaultMessage: 'Status: {status}. ',
values: { status: responseStatus },
})
: null}
{reason
? i18n.translate('xpack.uptime.monitorManagement.service.error.reason', {
defaultMessage: 'Reason: {reason}.',
values: { reason },
})
: null}
</p>
{responseStatus || reason ? (
<p>
{responseStatus
? i18n.translate('xpack.uptime.monitorManagement.service.error.status', {
defaultMessage: 'Status: {status}. ',
values: { status: responseStatus },
})
: null}
{reason
? i18n.translate('xpack.uptime.monitorManagement.service.error.reason', {
defaultMessage: 'Reason: {reason}.',
values: { reason },
})
: null}
</p>
) : null}
</>
),
toastLifeTimeMs: 30000,