From 08fc7764b19745517d8709fa160de00abee03746 Mon Sep 17 00:00:00 2001 From: Pablo Machado Date: Thu, 7 Apr 2022 14:59:42 +0200 Subject: [PATCH] Fix User page tabs Events and External alerts should have the new visualisation action itens (#129721) --- .../common/components/matrix_histogram/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.tsx b/x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.tsx index 488948de074f64..7626abd6af08d4 100644 --- a/x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.tsx @@ -181,8 +181,10 @@ export const MatrixHistogramComponent: React.FC = useMatrixHistogramCombined(matrixHistogramRequest); const [{ pageName }] = useRouteSpy(); - const onHostOrNetworkPage = - pageName === SecurityPageName.hosts || pageName === SecurityPageName.network; + const onHostOrNetworkOrUserPage = + pageName === SecurityPageName.hosts || + pageName === SecurityPageName.network || + pageName === SecurityPageName.users; const titleWithStackByField = useMemo( () => (title != null && typeof title === 'function' ? title(selectedStackByOption) : title), @@ -259,11 +261,11 @@ export const MatrixHistogramComponent: React.FC = toggleQuery={toggleQuery} subtitle={subtitleWithCounts} inspectMultiple - showInspectButton={showInspectButton || !onHostOrNetworkPage} + showInspectButton={showInspectButton || !onHostOrNetworkOrUserPage} isInspectDisabled={filterQuery === undefined} > - {onHostOrNetworkPage && (getLensAttributes || lensAttributes) && timerange && ( + {onHostOrNetworkOrUserPage && (getLensAttributes || lensAttributes) && timerange && (