fix: conflict handling on upload button

This commit is contained in:
Ramires Viana 2020-07-21 17:41:52 +00:00
parent f2d2c1cbf8
commit f228fa5540
2 changed files with 4 additions and 1 deletions

View File

@ -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 () {

View File

@ -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()
}
}