fix: conflict handling on upload button
This commit is contained in:
parent
f2d2c1cbf8
commit
f228fa5540
|
@ -418,12 +418,13 @@ export default {
|
||||||
confirm: (event) => {
|
confirm: (event) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.$store.commit('closeHovers')
|
this.$store.commit('closeHovers')
|
||||||
this.handleFiles(files, path, true)
|
upload.handleFiles(files, path, true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
upload.handleFiles(files, path)
|
upload.handleFiles(files, path)
|
||||||
},
|
},
|
||||||
resetOpacity () {
|
resetOpacity () {
|
||||||
|
|
|
@ -27,9 +27,11 @@ export default {
|
||||||
name: 'upload',
|
name: 'upload',
|
||||||
methods: {
|
methods: {
|
||||||
uploadFile: function () {
|
uploadFile: function () {
|
||||||
|
document.getElementById('upload-input').value = ''
|
||||||
document.getElementById('upload-input').click()
|
document.getElementById('upload-input').click()
|
||||||
},
|
},
|
||||||
uploadFolder: function () {
|
uploadFolder: function () {
|
||||||
|
document.getElementById('upload-folder-input').value = ''
|
||||||
document.getElementById('upload-folder-input').click()
|
document.getElementById('upload-folder-input').click()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue