Skip to content

Commit

Permalink
[APM] Adding tech preview on Alert Tab feature (#136615)
Browse files Browse the repository at this point in the history
* [APM] Adding tech preview on Alert Tab feature

* Display the icon on the right side
  • Loading branch information
kpatticha authored Jul 20, 2022
1 parent 092fb35 commit f30cfc1
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { ServiceIcons } from '../../../shared/service_icons';
import { ApmMainTemplate } from '../apm_main_template';
import { AnalyzeDataButton } from './analyze_data_button';
import { getAlertingCapabilities } from '../../../alerting/get_alerting_capabilities';
import { TechnicalPreviewBadge } from '../../../shared/technical_preview_badge';

type Tab = NonNullable<EuiPageHeaderProps['tabs']>[0] & {
key:
Expand Down Expand Up @@ -333,9 +334,18 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
path: { serviceName },
query,
}),
label: i18n.translate('xpack.apm.home.alertsTabLabel', {
defaultMessage: 'Alerts',
}),
label: (
<EuiFlexGroup gutterSize="xs">
<EuiFlexItem>
{i18n.translate('xpack.apm.home.alertsTabLabel', {
defaultMessage: 'Alerts',
})}
</EuiFlexItem>
<EuiFlexItem>
<TechnicalPreviewBadge icon="beaker" />
</EuiFlexItem>
</EuiFlexGroup>
),
hidden: !(isAlertingAvailable && canReadAlerts),
},
];
Expand Down

0 comments on commit f30cfc1

Please sign in to comment.