From 526b20ca0a1e222ea7a4be91483ec853648885b7 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Wed, 12 Feb 2025 16:44:30 +0100 Subject: [PATCH] feat: render a button to download the exports --- .../scans/table/scans/data-table-row-actions.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 + +