Remove generate button for downloading copies
It should not be necessary to first click the Generate
button and then Download
when you want to download copies. Instead, I propose the following behaviour, merging the two buttons:
- When you press the download button, it becomes disabled and the text changes to
Generating...
. An API request to generate the PDFs is sent to the server. - When the request for generating finishes, the button goes back to its initial state and the download is started. I'm not sure how to start the download without a click from the user, but I think if we redirect the user to the download url the browser will detect it as a download.
Edited by Hugo Kerstens