correction bug depot zip (bloquait le depot seulement sur le fichier .zip)
This commit is contained in:
parent
48e5280a57
commit
ed65ad5375
@ -43,6 +43,8 @@ export default {
|
|||||||
},
|
},
|
||||||
toggleDragEnded(){
|
toggleDragEnded(){
|
||||||
this.dragEnded = !this.dragEnded;
|
this.dragEnded = !this.dragEnded;
|
||||||
|
this.zip = null;
|
||||||
|
this.sharedFile = null;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -399,7 +399,6 @@ export default {
|
|||||||
},
|
},
|
||||||
onDragEnd() {
|
onDragEnd() {
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
console.log('feur2')
|
|
||||||
},
|
},
|
||||||
async onDrop(event) {
|
async onDrop(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -412,7 +411,6 @@ export default {
|
|||||||
console.log(file);
|
console.log(file);
|
||||||
console.log(zip);
|
console.log(zip);
|
||||||
|
|
||||||
|
|
||||||
if (!file && !zip) return;
|
if (!file && !zip) return;
|
||||||
|
|
||||||
if (zip) {
|
if (zip) {
|
||||||
@ -457,7 +455,6 @@ export default {
|
|||||||
this.newElemName = '';
|
this.newElemName = '';
|
||||||
}
|
}
|
||||||
this.isDroppable = true;
|
this.isDroppable = true;
|
||||||
console.log('feur')
|
|
||||||
},
|
},
|
||||||
async moveFilesOfFolder(folder, parentPath) {
|
async moveFilesOfFolder(folder, parentPath) {
|
||||||
await this.createFolder(folder, parentPath + '/');
|
await this.createFolder(folder, parentPath + '/');
|
||||||
|
@ -5,8 +5,9 @@
|
|||||||
<div class="w-1/6 px-4 py-2 text-gray-500 font-semibold">Taille</div>
|
<div class="w-1/6 px-4 py-2 text-gray-500 font-semibold">Taille</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Fichier .zip -->
|
||||||
<div class="flex h-16 hover:bg-NcGray items-center pl-4 cursor-pointer rounded-lg border-b last:border-b-0 border-gray-300" v-if="!isLoading && zipContent.length !== 0"
|
<div class="flex h-16 hover:bg-NcGray items-center pl-4 cursor-pointer rounded-lg border-b last:border-b-0 border-gray-300" v-if="!isLoading && zipContent.length !== 0"
|
||||||
draggable="true" @dragstart="dragZip()">
|
draggable="true" @dragstart="dragZip()" @dragend="onDragEnd">
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center justify-center cursor-pointer">
|
<div class="flex items-center justify-center cursor-pointer">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-10 h-10 ">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-10 h-10 ">
|
||||||
@ -23,6 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Archive depliee -->
|
||||||
<div v-if="!isLoading && zipContent.length !== 0" class="overflow-y-auto h-full">
|
<div v-if="!isLoading && zipContent.length !== 0" class="overflow-y-auto h-full">
|
||||||
<div v-for="(file, index) in sortedFiles" :key="file.fullPath" class="flex flex-col">
|
<div v-for="(file, index) in sortedFiles" :key="file.fullPath" class="flex flex-col">
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user