Skip to content

Commit

Permalink
Merge pull request #3 from MiriSafra/bulk-download-reports
Browse files Browse the repository at this point in the history
 ✨ Bulk download
  • Loading branch information
Shevijacobson authored Oct 29, 2024
2 parents 8b0a431 + 398fafc commit 2f2061f
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import {
DropdownItem,
Modal,
Tooltip,
FormGroup,
} from "@patternfly/react-core";
import {
CodeIcon,
PencilAltIcon,
TagIcon,
WarningTriangleIcon,
Expand Down Expand Up @@ -1357,6 +1359,38 @@ export const ApplicationsTable: React.FC = () => {
}}
/>
</div>
<Modal
isOpen={isDownloadModalOpen}
variant="small"
title={t("actions.download", { what: "analysis details reports" })}
onClose={() => setIsDownloadModalOpen(false)}
>
<FormGroup label="Select Format" fieldId="format-select">
{" "}
<div>
{" "}
<Button
variant={selectedFormat === "json" ? "primary" : "secondary"}
onClick={() => setSelectedFormat("json")}
>
{" "}
{<CodeIcon />} JSON{" "}
</Button>{" "}
<Button
variant={selectedFormat === "yaml" ? "primary" : "secondary"}
onClick={() => setSelectedFormat("yaml")}
>
{" "}
{<CodeIcon />} YAML{" "}
</Button>{" "}
</div>{" "}
<p>Selected Format: {selectedFormat}</p>{" "}
</FormGroup>{" "}
<Button variant="primary" onClick={handleDownload}>
{" "}
{t("actions.download")}{" "}
</Button>{" "}
</Modal>
</ConditionalRender>
);
};

0 comments on commit 2f2061f

Please sign in to comment.