Skip to content

Commit

Permalink
[Security Solution][Entity Analytics] Default asset criticality accor…
Browse files Browse the repository at this point in the history
…dion to open state (elastic#175084)

This PR sets the opening state of the Asset Criticality selector in the
entity flyouts to open.
[elastic#8402](elastic/security-team#8402)

---------

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
tiansivive and kibanamachine authored Jan 22, 2024
1 parent 811bd54 commit f74f856
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const AssetCriticalitySelector: React.FC<Props> = ({ entity }) => {
return (
<>
<EuiAccordion
initialIsOpen
id="asset-criticality-selector"
buttonContent={
<EuiTitle size="xs">
Expand Down Expand Up @@ -80,12 +81,10 @@ export const AssetCriticalitySelector: React.FC<Props> = ({ entity }) => {
>
<EuiFlexItem>
<EuiText size="s">
{criticality.status === 'update' && (
<AssetCriticalityBadgeAllowMissing
criticalityLevel={criticality.query.data?.criticality_level}
dataTestSubj="asset-criticality-level"
/>
)}
<AssetCriticalityBadgeAllowMissing
criticalityLevel={criticality.query.data?.criticality_level}
dataTestSubj="asset-criticality-level"
/>
</EuiText>
</EuiFlexItem>
<EuiFlexItem css={{ flexGrow: 'unset' }}>
Expand Down

0 comments on commit f74f856

Please sign in to comment.