mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* When APM is disabled, we were throwing an error in infra uiCapabilities.apm is undefined in these situations, so we can't check uiCapabilities.apm.save * Fixing tslint issues
This commit is contained in:
parent
ee4a76fb2a
commit
4d567d7fcc
1 changed files with 16 additions and 13 deletions
|
@ -65,19 +65,22 @@ export const NodeContextMenu = injectUICapabilities(
|
|||
})
|
||||
: undefined;
|
||||
|
||||
const apmTracesUrl = uiCapabilities.apm.show
|
||||
? {
|
||||
name: intl.formatMessage(
|
||||
{
|
||||
id: 'xpack.infra.nodeContextMenu.viewAPMTraces',
|
||||
defaultMessage: 'View {nodeType} APM traces',
|
||||
},
|
||||
{ nodeType }
|
||||
),
|
||||
href: `../app/apm#/traces?_g=()&kuery=${APM_FIELDS[nodeType]}~20~3A~20~22${node.id}~22`,
|
||||
'data-test-subj': 'viewApmTracesContextMenuItem',
|
||||
}
|
||||
: undefined;
|
||||
const apmTracesUrl =
|
||||
uiCapabilities.apm && uiCapabilities.apm.show
|
||||
? {
|
||||
name: intl.formatMessage(
|
||||
{
|
||||
id: 'xpack.infra.nodeContextMenu.viewAPMTraces',
|
||||
defaultMessage: 'View {nodeType} APM traces',
|
||||
},
|
||||
{ nodeType }
|
||||
),
|
||||
href: `../app/apm#/traces?_g=()&kuery=${APM_FIELDS[nodeType]}~20~3A~20~22${
|
||||
node.id
|
||||
}~22`,
|
||||
'data-test-subj': 'viewApmTracesContextMenuItem',
|
||||
}
|
||||
: undefined;
|
||||
|
||||
const panels: EuiContextMenuPanelDescriptor[] = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue