Files
frontend/app/components/BulkActionBar.vue
T
andreas.dinauer 96f9d88200 feat: Bulk-Aktionen für Objekte (Auswählen, Löschen, Verschieben)
- Checkboxen in der Objekttabelle inkl. Select-All pro Bucket-Ansicht
- BulkActionBar zeigt Anzahl Auswahl + Aktionen (Verschieben/Löschen/Aufheben)
- BulkDeletePopup: löscht ausgewählte Objekte einzeln, mit Retry bei Teilfehlern
- BulkMovePopup: verschiebt in beliebigen Zielbucket/-pfad via Server-Side-Copy + Delete
- sigv4: signS3Copy für x-amz-copy-source PUT-Requests, Header werden jetzt
  sortiert statt auf Insertion-Order zu vertrauen
- useS3Client: copyObject/moveObject ergänzt

Move ist client-seitig Copy+Delete, da S3 kein natives Rename/Move kennt.
2026-09-10 22:25:34 +02:00

43 lines
1.5 KiB
Vue

<template>
<div
v-if="count > 0"
class="flex shrink-0 items-center justify-between gap-4 border-b border-border bg-accent-dim/40 px-5 py-2.5"
>
<div class="flex items-center gap-2 text-sm text-text">
<span class="material-symbols-outlined !text-[18px] text-accent">check_circle</span>
{{ count }} Objekt{{ count === 1 ? '' : 'e' }} ausgewählt
</div>
<div class="flex items-center gap-2">
<button
type="button"
class="flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm font-medium text-text transition-colors hover:bg-surface-raised"
@click="$emit('move')"
>
<span class="material-symbols-outlined !text-[16px]">drive_file_move</span>
Verschieben
</button>
<button
type="button"
class="flex items-center gap-1.5 rounded-md bg-red-500 px-3 py-1.5 text-sm font-medium text-white transition-opacity hover:opacity-90"
@click="$emit('delete')"
>
<span class="material-symbols-outlined !text-[16px]">delete</span>
Löschen
</button>
<button
type="button"
class="flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm text-muted transition-colors hover:text-text"
@click="$emit('clear')"
>
<span class="material-symbols-outlined !text-[16px]">close</span>
Auswahl aufheben
</button>
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{ count: number }>()
defineEmits<{ move: []; delete: []; clear: [] }>()
</script>