mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 14:40:55 +03:00
fixed download button multi-click. fixes #927
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user