Skip to content

Commit

Permalink
[Profiling] change order of tabs (#147518)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar authored Dec 21, 2022
1 parent 56519fa commit 4e0a0a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,35 @@ export function getStackTracesTabs({
profilingRouter: StatefulProfilingRouter;
}): Required<EuiPageHeaderContentProps>['tabs'] {
return [
{
label: i18n.translate('xpack.profiling.stackTracesView.containersTabLabel', {
defaultMessage: 'Containers',
}),
topNType: TopNType.Containers,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.deploymentsTabLabel', {
defaultMessage: 'Deployments',
}),
topNType: TopNType.Deployments,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.threadsTabLabel', {
defaultMessage: 'Threads',
}),
topNType: TopNType.Threads,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.tracesTabLabel', {
defaultMessage: 'Traces',
}),
topNType: TopNType.Traces,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.hostsTabLabel', {
defaultMessage: 'Hosts',
}),
topNType: TopNType.Hosts,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.tracesTabLabel', {
defaultMessage: 'Traces',
label: i18n.translate('xpack.profiling.stackTracesView.deploymentsTabLabel', {
defaultMessage: 'Deployments',
}),
topNType: TopNType.Traces,
topNType: TopNType.Deployments,
},
{
label: i18n.translate('xpack.profiling.stackTracesView.containersTabLabel', {
defaultMessage: 'Containers',
}),
topNType: TopNType.Containers,
},
].map((tab) => ({
label: tab.label,
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/profiling/public/routing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const routes = {
},
},
'/stacktraces': {
element: <RedirectTo pathname="/stacktraces/containers" />,
element: <RedirectTo pathname="/stacktraces/threads" />,
},
'/flamegraphs': {
element: (
Expand Down Expand Up @@ -179,7 +179,7 @@ const routes = {
},
},
'/': {
element: <RedirectTo pathname="/stacktraces/containers" />,
element: <RedirectTo pathname="/stacktraces/threads" />,
},
},
element: <Outlet />,
Expand Down

0 comments on commit 4e0a0a5

Please sign in to comment.