[Cloud Security] Added UI support for waiting for results (#154969)

This commit is contained in:
Kfir Peled 2023-04-13 18:25:26 -06:00 committed by GitHub
parent 206b331696
commit 6ced0d6ee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -268,7 +268,7 @@ export const NoFindingsStates = ({ posturetype }: { posturetype: PostureTypes })
.sort((a, b) => a.localeCompare(b));
const render = () => {
if (status === 'not-deployed') return <NotDeployed />; // integration installed, but no agents added
if (status === 'indexing') return <Indexing />; // agent added, index timeout hasn't passed since installation
if (status === 'indexing' || status === 'waiting_for_results') return <Indexing />; // agent added, index timeout hasn't passed since installation
if (status === 'index-timeout') return <IndexTimeout />; // agent added, index timeout has passed
if (status === 'unprivileged')
return <Unprivileged unprivilegedIndices={unprivilegedIndices || []} />; // user has no privileges for our indices

View file

@ -206,7 +206,7 @@ export const NoVulnerabilitiesStates = () => {
.sort((a, b) => a.localeCompare(b));
const render = () => {
if (status === 'not-deployed' || status === 'indexing')
if (status === 'not-deployed' || status === 'indexing' || status === 'waiting_for_results')
return <ScanningVulnerabilitiesEmptyPrompt />; // integration installed, but no agents added
if (status === 'index-timeout') return <IndexTimeout />; // agent added, index timeout has passed
if (status === 'not-installed')