Skip to content

Commit

Permalink
[APM] Update link titles in global search
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha committed May 3, 2022
1 parent d71299b commit 904d823
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { offsetRt } from '../../../common/offset_rt';

const ServiceGroupsTitle = i18n.translate(
'xpack.apm.views.serviceGroups.title',
{ defaultMessage: ' Services' }
{ defaultMessage: 'Services' }
);

/**
Expand Down
16 changes: 14 additions & 2 deletions x-pack/plugins/apm/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ export interface ApmPluginStartDeps {
const servicesTitle = i18n.translate('xpack.apm.navigation.servicesTitle', {
defaultMessage: 'Services',
});

const allServicesTitle = i18n.translate(
'xpack.apm.navigation.allServicesTitle',
{
defaultMessage: 'All services',
}
);

const tracesTitle = i18n.translate('xpack.apm.navigation.tracesTitle', {
defaultMessage: 'Traces',
});
Expand Down Expand Up @@ -270,12 +278,16 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
? [
{
id: 'service-groups-list',
title: 'Service groups',
title: servicesTitle,
path: '/service-groups',
},
]
: []),
{ id: 'services', title: servicesTitle, path: '/services' },
{
id: 'services',
title: serviceGroupsEnabled ? allServicesTitle : servicesTitle,
path: '/services',
},
{ id: 'traces', title: tracesTitle, path: '/traces' },
{ id: 'service-map', title: serviceMapTitle, path: '/service-map' },
{ id: 'backends', title: dependenciesTitle, path: '/backends' },
Expand Down

0 comments on commit 904d823

Please sign in to comment.