Skip to content

Commit e63eeb6

Browse files
uptime - adjust synthetics service sync errors behavior (#125169)
1 parent 49f8b2e commit e63eeb6

File tree

1 file changed

+16
-14
lines changed
  • x-pack/plugins/uptime/public/components/monitor_management/action_bar

1 file changed

+16
-14
lines changed

x-pack/plugins/uptime/public/components/monitor_management/action_bar/action_bar.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,22 @@ export const ActionBar = ({ monitor, isValid, onSave, onTestNow, testRun }: Acti
110110
},
111111
})}
112112
</p>
113-
<p>
114-
{status
115-
? i18n.translate('xpack.uptime.monitorManagement.service.error.status', {
116-
defaultMessage: 'Status: {status}. ',
117-
values: { status: responseStatus },
118-
})
119-
: null}
120-
{reason
121-
? i18n.translate('xpack.uptime.monitorManagement.service.error.reason', {
122-
defaultMessage: 'Reason: {reason}.',
123-
values: { reason },
124-
})
125-
: null}
126-
</p>
113+
{responseStatus || reason ? (
114+
<p>
115+
{responseStatus
116+
? i18n.translate('xpack.uptime.monitorManagement.service.error.status', {
117+
defaultMessage: 'Status: {status}. ',
118+
values: { status: responseStatus },
119+
})
120+
: null}
121+
{reason
122+
? i18n.translate('xpack.uptime.monitorManagement.service.error.reason', {
123+
defaultMessage: 'Reason: {reason}.',
124+
values: { reason },
125+
})
126+
: null}
127+
</p>
128+
) : null}
127129
</>
128130
),
129131
toastLifeTimeMs: 30000,

0 commit comments

Comments
 (0)