Skip to content

Commit

Permalink
fix: dont browse files when processing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Nov 21, 2024
1 parent 3efc0b2 commit 33d2412
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/media/DragAndDropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,20 @@
</div>
<div class="row">
<div
class="col cursor-pointer rounded-borders dashed-border items-center justify-center flex"
:class="{ 'bg-accent-100': hovering }"
class="col rounded-borders dashed-border items-center justify-center flex"
:class="{
'cursor-pointer': !totalFiles && !(!!jwpubDb || jwpubLoading),
'bg-accent-100':
hovering && !totalFiles && !(!!jwpubDb || jwpubLoading),
}"
style="height: 20vh"
@click="getLocalFiles()"
@click="
() => {
if (!totalFiles && !(!!jwpubDb || jwpubLoading)) {
getLocalFiles();
}
}
"
@mouseenter="hovering = true"
@mouseleave="hovering = false"
>
Expand Down

0 comments on commit 33d2412

Please sign in to comment.