add possibility to disable delete and upload of books

This commit is contained in:
Adrien
2026-04-06 14:09:17 +02:00
parent 5c641f4bcc
commit e5d53b4e80
7 changed files with 41 additions and 2 deletions
+2
View File
@@ -41,6 +41,7 @@
Read
</router-link>
<button
v-if="deleteEnabled"
class="btn btn-danger"
:disabled="book.status === 'PROCESSING' || deleting"
@click="$emit('delete', book.id)"
@@ -59,6 +60,7 @@ import type { Book } from '@/stores/bookStore'
const props = defineProps<{
book: Book
deleting?: boolean
deleteEnabled?: boolean
}>()
defineEmits<{