mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This commit is contained in:
parent
f062c97302
commit
2fe2b8a0d3
1 changed files with 4 additions and 1 deletions
|
@ -23,12 +23,15 @@ export class ServiceDetailTabs extends React.Component<TabsProps> {
|
|||
public render() {
|
||||
const { transactionTypes, urlParams, location } = this.props;
|
||||
const { serviceName } = urlParams;
|
||||
const headTransactionType = transactionTypes[0];
|
||||
const tabs = [
|
||||
{
|
||||
name: i18n.translate('xpack.apm.serviceDetails.transactionsTabLabel', {
|
||||
defaultMessage: 'Transactions'
|
||||
}),
|
||||
path: `/${serviceName}/transactions/${transactionTypes[0]}`,
|
||||
path: headTransactionType
|
||||
? `/${serviceName}/transactions/${headTransactionType}`
|
||||
: `/${serviceName}/transactions`,
|
||||
routePath: `/${serviceName}/transactions/:transactionType?`,
|
||||
render: () => (
|
||||
<TransactionOverview
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue