fixed download button multi-click. fixes #927
This commit is contained in:
parent
93e82cf953
commit
fb83b324ab
1 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,8 @@ module.exports = function(state, emit) {
|
||||||
|
|
||||||
function download(event) {
|
function download(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (downloadState !== 'complete') {
|
event.target.disabled = true;
|
||||||
|
if (downloadState === 'ready') {
|
||||||
emit('download', state.fileInfo);
|
emit('download', state.fileInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue