Skip to content

Commit

Permalink
[APM] Adding tech preview on Alert Tab feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha committed Jul 19, 2022
1 parent e57d1f4 commit 32da501
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 @@ -330,9 +331,18 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
path: { serviceName },
query,
}),
label: i18n.translate('xpack.apm.home.alertsTabLabel', {
defaultMessage: 'Alerts',
}),
label: (
<EuiFlexGroup direction="row" gutterSize="xs">
<EuiFlexItem>
<TechnicalPreviewBadge icon="beaker" />
</EuiFlexItem>
<EuiFlexItem>
{i18n.translate('xpack.apm.home.alertsTabLabel', {
defaultMessage: 'Alerts',
})}
</EuiFlexItem>
</EuiFlexGroup>
),
hidden: !(isAlertingAvailable && canReadAlerts),
},
];
Expand Down

0 comments on commit 32da501

Please sign in to comment.