feat: suppression de série entière (dossier + livres + métadonnées)
Backend: - Ajoute DELETE /libraries/:id/series/:name dans series.rs - Supprime tous les fichiers physiques des livres de la série - Supprime le dossier de la série (remove_dir_all) - Nettoie en DB : books, series_metadata, external_metadata_links, anilist_series_links, available_downloads - Queue un scan job pour cohérence Frontend: - Crée DeleteSeriesButton.tsx avec modale de confirmation - Ajouté dans la toolbar de la page détail série - i18n fr/en pour les textes de confirmation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,9 @@ const ReadingStatusModal = nextDynamic(
|
||||
const ProwlarrSearchModal = nextDynamic(
|
||||
() => import("@/app/components/ProwlarrSearchModal").then(m => m.ProwlarrSearchModal)
|
||||
);
|
||||
const DeleteSeriesButton = nextDynamic(
|
||||
() => import("@/app/components/DeleteSeriesButton").then(m => m.DeleteSeriesButton)
|
||||
);
|
||||
import { notFound } from "next/navigation";
|
||||
import { getServerTranslations } from "@/lib/i18n/server";
|
||||
|
||||
@@ -262,6 +265,10 @@ export default async function SeriesDetailPage({
|
||||
readingStatusProvider={library.reading_status_provider ?? null}
|
||||
existingLink={readingStatusLink}
|
||||
/>
|
||||
<DeleteSeriesButton
|
||||
libraryId={id}
|
||||
seriesName={seriesName}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user