basic selection + download multiple files with selection
This commit is contained in:
@@ -31,6 +31,34 @@ await useAsyncData('warrens', async () => {
|
||||
</div>
|
||||
|
||||
<div class="ml-auto flex flex-row items-center gap-2">
|
||||
<Button
|
||||
variant="outline"
|
||||
size="icon"
|
||||
:disabled="
|
||||
store.current != null &&
|
||||
store.current.dir != null &&
|
||||
store.selection.size >=
|
||||
store.current.dir.entries.length
|
||||
"
|
||||
@click="
|
||||
() =>
|
||||
store.current != null &&
|
||||
store.current.dir != null &&
|
||||
store.addMultipleToSelection(
|
||||
store.current.dir.entries
|
||||
)
|
||||
"
|
||||
>
|
||||
<Icon name="lucide:list" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="icon"
|
||||
:disabled="store.selection.size < 1"
|
||||
@click="() => store.clearSelection()"
|
||||
>
|
||||
<Icon name="lucide:list-x" />
|
||||
</Button>
|
||||
<Separator
|
||||
orientation="vertical"
|
||||
class="mr-2 hidden !h-4 md:block"
|
||||
|
||||
Reference in New Issue
Block a user