Skip to content

Commit

Permalink
fix(2029): remove never scanned from filter, adjust vertical separtor
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-deepfence committed Nov 24, 2023
1 parent b073069 commit cda9591
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ const Filters = () => {
getDisplayValue={() => FILTER_SEARCHPARAMS['malwareScanStatus']}
>
{SCAN_STATUS_GROUPS.filter((item) => {
if (item.value === 'neverScanned') {
return false;
}
if (!malwareScanStatusSearchText.length) return true;
return item.label
.toLowerCase()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ const StatusesCount = ({
}) => {
return (
<div className="col-span-6">
<div className="gap-24 flex justify-center">
<div className="flex justify-evenly gap-8">
{Object.keys(statusCounts)?.map((key: string) => {
return (
<div key={key} className="col-span-2 dark:text-text-text-and-icon">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ const StatusesCount = ({
}) => {
return (
<div className="col-span-6">
<div className="gap-24 flex justify-center">
<div className="flex justify-evenly gap-8">
{Object.keys(statusCounts)?.map((key: string) => {
return (
<div key={key} className="col-span-2 dark:text-text-text-and-icon">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ const Filters = () => {
getDisplayValue={() => FILTER_SEARCHPARAMS['secretScanStatus']}
>
{SCAN_STATUS_GROUPS.filter((item) => {
if (item.value === 'neverScanned') {
return false;
}
if (!secretScanStatusSearchText.length) return true;
return item.label
.toLowerCase()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,9 @@ const Filters = () => {
getDisplayValue={() => FILTER_SEARCHPARAMS['vulnerabilityScanStatus']}
>
{SCAN_STATUS_GROUPS.filter((item) => {
if (item.value === 'neverScanned') {
return false;
}
if (!vulnerabilityScanStatusSearchText.length) return true;
return item.label
.toLowerCase()
Expand Down

0 comments on commit cda9591

Please sign in to comment.