From f745cbb984b85582c43bc7c2ff5db99607ab3646 Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Wed, 8 Jan 2025 12:31:11 +0000 Subject: [PATCH] Adding download attribute --- application/templates/entity.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/templates/entity.html b/application/templates/entity.html index c9c6af39..2f43900f 100644 --- a/application/templates/entity.html +++ b/application/templates/entity.html @@ -413,7 +413,7 @@

{{ type|capitalize }}

downloadButton.className = 'govuk-button govuk-button--secondary'; downloadButton.style.marginTop = '10px'; downloadButton.textContent = 'Download GeoJSON'; - + downloadButton.setAttribute('download', '{{ row["entity"] }}.geojson'); geojsonContentElement.parentElement.appendChild(downloadButton); }); }