mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +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) {
|
||||
event.preventDefault();
|
||||
if (downloadState !== 'complete') {
|
||||
event.target.disabled = true;
|
||||
if (downloadState === 'ready') {
|
||||
emit('download', state.fileInfo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user