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.
[7.x] add button link to ingest (elastic#70142) (elastic#70896)
update security solution empty page (elastic#70142) Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
Showing
22 changed files
with
180 additions
and
172 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
19 changes: 0 additions & 19 deletions
19
...curity_solution/public/alerts/pages/detection_engine/detection_engine_empty_page.test.tsx
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...ns/security_solution/public/alerts/pages/detection_engine/detection_engine_empty_page.tsx
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...s/security_solution/public/common/components/empty_page/__snapshots__/index.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
x-pack/plugins/security_solution/public/common/hooks/endpoint/ingest_enabled.ts
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,34 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { useKibana } from '../../../../../../../src/plugins/kibana_react/public'; | ||
|
||
/** | ||
* Returns an object which ingest permissions are allowed | ||
*/ | ||
export const useIngestEnabledCheck = (): { | ||
allEnabled: boolean; | ||
show: boolean; | ||
write: boolean; | ||
read: boolean; | ||
} => { | ||
const { services } = useKibana(); | ||
|
||
// Check if Ingest Manager is present in the configuration | ||
const show = services.application.capabilities.ingestManager?.show ?? false; | ||
const write = services.application.capabilities.ingestManager?.write ?? false; | ||
const read = services.application.capabilities.ingestManager?.read ?? false; | ||
|
||
// Check if all Ingest Manager permissions are enabled | ||
const allEnabled = show && read && write ? true : false; | ||
|
||
return { | ||
allEnabled, | ||
show, | ||
write, | ||
read, | ||
}; | ||
}; |
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
34 changes: 0 additions & 34 deletions
34
x-pack/plugins/security_solution/public/hosts/pages/hosts_empty_page.tsx
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...ugins/security_solution/public/network/pages/ip_details/__snapshots__/index.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.