getodk / central-frontend

Vue.js based frontend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
32 stars 57 forks source link

Add ability to download data template for uploading entities #933

Closed matthew-white closed 7 months ago

matthew-white commented 7 months ago

Part of getodk/central#589.

What has been done to verify that this works as intended?

New tests, as well as trying out the button locally. I observed that a CSV file was downloaded with the expected content.

Why is this the best possible solution? Were any other approaches considered?

I thought about using URL.createObjectURL(), but a data URL seemed a little simpler.

Before submitting this PR, please make sure you have: