Skip to content

Commit

Permalink
fix: conflict handling on upload button
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Jul 23, 2020
1 parent f2d2c1c commit f228fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/files/Listing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,13 @@ export default {
confirm: (event) => {
event.preventDefault()
this.$store.commit('closeHovers')
this.handleFiles(files, path, true)
upload.handleFiles(files, path, true)
}
})
return
}
upload.handleFiles(files, path)
},
resetOpacity () {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/prompts/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export default {
name: 'upload',
methods: {
uploadFile: function () {
document.getElementById('upload-input').value = ''
document.getElementById('upload-input').click()
},
uploadFolder: function () {
document.getElementById('upload-folder-input').value = ''
document.getElementById('upload-folder-input').click()
}
}
Expand Down

0 comments on commit f228fa5

Please sign in to comment.