Skip to content

Commit

Permalink
Add type row to monitor detail page.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Oct 5, 2020
1 parent 197510a commit ac2a8e0
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 ac2a8e0

Please sign in to comment.