From f228fa55408824618e9f0879da67c86d22b0d324 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:41:52 +0000 Subject: [PATCH] fix: conflict handling on upload button --- frontend/src/components/files/Listing.vue | 3 ++- frontend/src/components/prompts/Upload.vue | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/files/Listing.vue b/frontend/src/components/files/Listing.vue index 1d2bf9e8..96e93670 100644 --- a/frontend/src/components/files/Listing.vue +++ b/frontend/src/components/files/Listing.vue @@ -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 () { diff --git a/frontend/src/components/prompts/Upload.vue b/frontend/src/components/prompts/Upload.vue index 3202ef2c..d2d67a76 100644 --- a/frontend/src/components/prompts/Upload.vue +++ b/frontend/src/components/prompts/Upload.vue @@ -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() } }