delete multiple files with selection
This commit is contained in:
@@ -19,6 +19,7 @@ const {
|
||||
const emit = defineEmits<{
|
||||
'entry-click': [entry: DirectoryEntry, event: MouseEvent];
|
||||
'entry-download': [entry: DirectoryEntry];
|
||||
'entry-delete': [entry: DirectoryEntry, force: boolean];
|
||||
back: [];
|
||||
}>();
|
||||
|
||||
@@ -35,6 +36,10 @@ function onEntryClicked(entry: DirectoryEntry, event: MouseEvent) {
|
||||
function onEntryDownload(entry: DirectoryEntry) {
|
||||
emit('entry-download', entry);
|
||||
}
|
||||
|
||||
function onEntryDelete(entry: DirectoryEntry, force: boolean) {
|
||||
emit('entry-delete', entry, force);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -61,6 +66,7 @@ function onEntryDownload(entry: DirectoryEntry) {
|
||||
:draggable="entriesDraggable"
|
||||
@entry-click="onEntryClicked"
|
||||
@entry-download="onEntryDownload"
|
||||
@entry-delete="onEntryDelete"
|
||||
/>
|
||||
</div>
|
||||
</ScrollArea>
|
||||
|
||||
Reference in New Issue
Block a user