diff --git a/ui/components/scans/table/scans/data-table-row-actions.tsx b/ui/components/scans/table/scans/data-table-row-actions.tsx index 7a01023986..25ce5c1ea6 100644 --- a/ui/components/scans/table/scans/data-table-row-actions.tsx +++ b/ui/components/scans/table/scans/data-table-row-actions.tsx @@ -20,6 +20,7 @@ import { VerticalDotsIcon } from "@/components/icons"; import { CustomAlertModal } from "@/components/ui/custom"; import { EditScanForm } from "../../forms"; +import { DownloadIcon } from "lucide-react"; interface DataTableRowActionsProps { row: Row; @@ -33,6 +34,7 @@ export function DataTableRowActions({ const [isEditOpen, setIsEditOpen] = useState(false); const scanId = (row.original as { id: string }).id; const scanName = (row.original as any).attributes?.name; + const scanState = (row.original as any).attributes?.state; return ( <> ({ color="default" variant="flat" > + + } + onPress={() => setIsEditOpen(true)} + isDisabled={scanState !== "completed"} + > + Export .zip + +