Add clear warning when deleting books that files will be permanently removed (#2438)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-23 12:48:44 -07:00
committed by GitHub
co-authored by acx10
parent e03cca1d8c
commit 28adb75a1a
5 changed files with 41 additions and 5 deletions
@@ -235,12 +235,15 @@ export class MetadataViewerComponent implements OnInit, OnChanges {
icon: 'pi pi-trash',
command: () => {
this.confirmationService.confirm({
message: `Are you sure you want to delete "${book.metadata?.title}"?`,
message: `Are you sure you want to delete "${book.metadata?.title}"?\n\nThis will permanently remove the book file from your filesystem.\n\nThis action cannot be undone.`,
header: 'Confirm Deletion',
icon: 'pi pi-exclamation-triangle',
acceptIcon: 'pi pi-trash',
rejectIcon: 'pi pi-times',
acceptLabel: 'Delete',
rejectLabel: 'Cancel',
acceptButtonStyleClass: 'p-button-danger',
rejectButtonStyleClass: 'p-button-outlined',
accept: () => {
this.bookService.deleteBooks(new Set([book.id])).subscribe({
next: () => {