Skip to content

Commit

Permalink
Adding download attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadhu-sl committed Jan 8, 2025
1 parent 20369db commit f745cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/templates/entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ <h3 class="govuk-heading-s">{{ type|capitalize }}</h3>
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);
});
}
Expand Down

0 comments on commit f745cbb

Please sign in to comment.