From fb83b324ab660c77ed14be2d3cc23987e8f54d1d Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 20 Sep 2018 09:04:02 -0700 Subject: [PATCH] fixed download button multi-click. fixes #927 --- app/templates/downloadButton/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }