From ed65ad5375789b17a2765ffae948e0b0571aabd2 Mon Sep 17 00:00:00 2001 From: Alexandre_BRAVO Date: Fri, 29 Nov 2024 15:03:43 +0100 Subject: [PATCH] correction bug depot zip (bloquait le depot seulement sur le fichier .zip) --- src/App.vue | 2 ++ src/components/FileTable.vue | 3 --- src/components/WebContentViewer.vue | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4210a58..a647972 100644 --- a/src/App.vue +++ b/src/App.vue @@ -43,6 +43,8 @@ export default { }, toggleDragEnded(){ this.dragEnded = !this.dragEnded; + this.zip = null; + this.sharedFile = null; }, }, } diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue index b3a173c..808f00c 100644 --- a/src/components/FileTable.vue +++ b/src/components/FileTable.vue @@ -399,7 +399,6 @@ export default { }, onDragEnd() { this.isDragging = false; - console.log('feur2') }, async onDrop(event) { event.preventDefault(); @@ -412,7 +411,6 @@ export default { console.log(file); console.log(zip); - if (!file && !zip) return; if (zip) { @@ -457,7 +455,6 @@ export default { this.newElemName = ''; } this.isDroppable = true; - console.log('feur') }, async moveFilesOfFolder(folder, parentPath) { await this.createFolder(folder, parentPath + '/'); diff --git a/src/components/WebContentViewer.vue b/src/components/WebContentViewer.vue index 9954923..e31d278 100644 --- a/src/components/WebContentViewer.vue +++ b/src/components/WebContentViewer.vue @@ -5,8 +5,9 @@
Taille
+
+ draggable="true" @dragstart="dragZip()" @dragend="onDragEnd">