diff --git a/app/templates/downloadButton/index.js b/app/templates/downloadButton/index.js index 61f3a28a..fd020cb6 100644 --- a/app/templates/downloadButton/index.js +++ b/app/templates/downloadButton/index.js @@ -22,14 +22,15 @@ module.exports = function(state, emit) { } return html` - `; function download(event) { event.preventDefault(); - if (downloadState !== 'complete') { + event.target.disabled = true; + if (downloadState === 'ready') { emit('download', state.fileInfo); } }