forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] host isolation exceptions listing under policy in…
…tegration details tab (elastic#120361)
- Loading branch information
Showing
19 changed files
with
793 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...ic/management/pages/policy/view/host_isolation_exceptions/components/empty_unassigned.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiEmptyPrompt, EuiLink, EuiPageTemplate } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import React from 'react'; | ||
|
||
export const PolicyHostIsolationExceptionsEmptyUnassigned = ({ | ||
policyName, | ||
toHostIsolationList, | ||
}: { | ||
policyName: string; | ||
toHostIsolationList: string; | ||
}) => { | ||
return ( | ||
<EuiPageTemplate template="centeredContent"> | ||
<EuiEmptyPrompt | ||
iconType="plusInCircle" | ||
data-test-subj="policy-host-isolation-exceptions-empty-unassigned" | ||
title={ | ||
<h2> | ||
<FormattedMessage | ||
id="xpack.securitySolution.endpoint.policy.hostIsolationExceptions.empty.unassigned.title" | ||
defaultMessage="No assigned host isolation exceptions" | ||
/> | ||
</h2> | ||
} | ||
body={ | ||
<FormattedMessage | ||
id="xpack.securitySolution.endpoint.policy.hostIsolationExceptions.empty.unassigned.content" | ||
defaultMessage="There are currently no host isolation exceptions assigned to {policyName}. Assign exceptions now or add and manage them on the host isolation exceptions page." | ||
values={{ policyName }} | ||
/> | ||
} | ||
actions={[ | ||
<EuiLink href={toHostIsolationList}> | ||
<FormattedMessage | ||
id="xpack.securitySolution.endpoint.policy.hostIsolationExceptions.empty.unassigned.secondaryAction" | ||
defaultMessage="Manage host isolation exceptions" | ||
/> | ||
</EuiLink>, | ||
]} | ||
/> | ||
</EuiPageTemplate> | ||
); | ||
}; | ||
|
||
PolicyHostIsolationExceptionsEmptyUnassigned.displayName = | ||
'PolicyHostIsolationExceptionsEmptyUnassigned'; |
Oops, something went wrong.