Skip to content

Commit

Permalink
Merge pull request #1783 from deepfence/ui-fix-issues
Browse files Browse the repository at this point in the history
Registry image listing for report creation and disabled dropdown item
  • Loading branch information
milan-deepfence authored Nov 28, 2023
2 parents b33a33a + 8ad9c4c commit a23205d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const AdvancedFilter = ({
onClearAll={() => {
setImages([]);
}}
active={false}
active={!deadNodes}
/>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ const ActionDropdown = ({
<>
<DropdownItem
disabled={isScanInProgress(scanStatus) || isScanStopping(scanStatus)}
onClick={() => {
onSelect={() => {
if (!nodeId) {
throw new Error('Node id is required to start scan');
}
Expand Down Expand Up @@ -586,6 +586,7 @@ const ActionDropdown = ({
<span
className={cn('flex items-center gap-x-2', {
'text-red-700 dark:text-status-error': scanId,
'dark:text-df-gray-600': !scanId || !nodeType,
})}
>
Delete latest scan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
useSearchParams,
} from 'react-router-dom';
import { toast } from 'sonner';
import { cn } from 'tailwind-preset';
import {
Badge,
Breadcrumb,
Expand Down Expand Up @@ -415,7 +416,11 @@ const ActionDropdown = ({
}}
disabled={isScanInProgress(scanStatus)}
>
<span className="flex items-center text-red-700 dark:text-status-error">
<span
className={cn('flex items-center text-red-700 dark:text-status-error', {
'dark:text-df-gray-600': isScanInProgress(scanStatus),
})}
>
Delete
</span>
</DropdownItem>
Expand Down

0 comments on commit a23205d

Please sign in to comment.