Skip to content

Commit

Permalink
Add type row to monitor detail page. (#79556)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
justinkambic and kibanamachine committed Oct 6, 2020
1 parent 230a292 commit 52379a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ export const MonitorStatusBar: React.FC = () => {
</MonListDescription>
<MonListTitle>{MonitorIDLabel}</MonListTitle>
<MonListDescription data-test-subj="monitor-page-title">{monitorId}</MonListDescription>
{monitorStatus?.monitor?.type && (
<>
<MonListTitle aria-label={labels.typeAriaLabel}>{labels.typeLabel}</MonListTitle>
<MonListDescription data-test-subj="monitor-page-type">
{monitorStatus.monitor.type}
</MonListDescription>
</>
)}
<MonitorSSLCertificate tls={monitorStatus?.tls} />
<MonitorRedirects monitorStatus={monitorStatus} />
</EuiDescriptionList>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ export const downLabel = i18n.translate(
}
);

export const typeLabel = i18n.translate('xpack.uptime.monitorStatusBar.type.label', {
defaultMessage: 'Type',
});

export const typeAriaLabel = i18n.translate('xpack.uptime.monitorStatusBar.type.ariaLabel', {
defaultMessage: 'Monitor type',
});

export const monitorUrlLinkAriaLabel = i18n.translate(
'xpack.uptime.monitorStatusBar.monitorUrlLinkAriaLabel',
{
Expand Down

0 comments on commit 52379a0

Please sign in to comment.