Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,26 @@ function Results() {
</p>
</>
)}
<br />
{availabilityDetails?.payload && (
<>
<p className="font-bold">{t("results.general.download")}</p>
<a
href={URL.createObjectURL(
new Blob(
[new Uint8Array(availabilityDetails.payload.buffer as ArrayBuffer)],
{
type: availabilityDetails.type || "application/octet-stream",
}
)
)}
download={availabilityDetails.filename || "archivo.bin"}
className="text-blue-500 underline text-sm"
>
{t("results.general.download-link")}
</a>
</>
)}
</div>
</Col>
</Row>
Expand Down
4 changes: 3 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
"general": {
"date": "Date",
"issuer": "Issuer",
"name": "Name"
"name": "Name",
"download": "Download file",
"download-link": "Click here to download the file"
},
"integrity": {
"anchor-id": "Anchor ID",
Expand Down
4 changes: 3 additions & 1 deletion src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
"general": {
"date": "Fecha",
"issuer": "Emisor",
"name": "Nombre"
"name": "Nombre",
"download": "Descargar archivo",
"download-link": "Haz clic aquí para descargar el archivo"
},
"integrity": {
"anchor-id": "ID de anclaje",
Expand Down