Skip to content

Commit

Permalink
[SecuritySolution] [EntityStore] Use SecuritySolution link to prevent…
Browse files Browse the repository at this point in the history
… page refresh (elastic#199278)

## Summary

Use in-app navigation to prevent page refresh.



https://github.com/user-attachments/assets/cdb1ab08-62ab-4e51-b92f-2afafa56476d
  • Loading branch information
machadoum authored and mbondyra committed Nov 8, 2024
1 parent 85ff847 commit ce1dc41
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import {
EuiButtonEmpty,
EuiButton,
EuiCallOut,
EuiCodeBlock,
EuiFlexGroup,
Expand All @@ -19,6 +18,7 @@ import React from 'react';
import { FormattedMessage } from '@kbn/i18n-react';
import { css } from '@emotion/react';
import { SecurityPageName } from '@kbn/deeplinks-security';
import { SecuritySolutionLinkButton } from '../../../../common/components/links';
import type { BulkUpsertAssetCriticalityRecordsResponse } from '../../../../../common/api/entity_analytics';
import { buildAnnotationsFromError } from '../helpers';
import { ScheduleRiskEngineCallout } from './schedule_risk_engine_callout';
Expand Down Expand Up @@ -75,14 +75,14 @@ export const AssetCriticalityResultStep: React.FC<{
id="xpack.securitySolution.entityAnalytics.assetCriticalityResultStep.successMessage"
/>
<EuiSpacer size="s" />
<EuiButton href={SecurityPageName.entityAnalytics} color="success" isDisabled={false}>
<SecuritySolutionLinkButton deepLinkId={SecurityPageName.entityAnalytics} color="success">
{
<FormattedMessage
defaultMessage="View asset criticality assignments."
id="xpack.securitySolution.entityAnalytics.assetCriticalityResultStep.viewAssetCriticalityAssignments"
/>
}
</EuiButton>
</SecuritySolutionLinkButton>
</EuiCallOut>
<EuiSpacer size="s" />
<ScheduleRiskEngineCallout />
Expand Down

0 comments on commit ce1dc41

Please sign in to comment.