directory back up (parent) button + drag entry into parent to move
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
import { ScrollArea } from '@/components/ui/scroll-area';
|
||||
import type { DirectoryEntry } from '#shared/types';
|
||||
|
||||
const { entries, isOverDropZone } = defineProps<{
|
||||
const { entries, parent, isOverDropZone } = defineProps<{
|
||||
entries: DirectoryEntry[];
|
||||
parent: DirectoryEntry | null;
|
||||
isOverDropZone?: boolean;
|
||||
}>();
|
||||
|
||||
@@ -23,6 +24,7 @@ const sortedEntries = computed(() =>
|
||||
<Icon class="size-16 animate-pulse" name="lucide:upload" />
|
||||
</div>
|
||||
<div class="flex flex-row flex-wrap gap-2">
|
||||
<DirectoryBackEntry v-if="parent != null" :entry="parent" />
|
||||
<DirectoryEntry
|
||||
v-for="entry in sortedEntries"
|
||||
:key="entry.name"
|
||||
|
||||
Reference in New Issue
Block a user