feat: ajout de la fonctionnalité de suppression des chapitres avec mise à jour de l'API et des composants associés pour gérer la suppression des chapitres et des fichiers CBZ.
This commit is contained in:
parent
37e1b202c2
commit
8692fa14c6
@@ -35,8 +35,8 @@
|
||||
|
||||
<script setup>
|
||||
import { ArrowDownTrayIcon, MagnifyingGlassIcon, TrashIcon, XMarkIcon } from '@heroicons/vue/24/solid';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { useMangaStore } from '../../application/store/mangaStore';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { useMangaStore } from '../../application/store/mangaStore';
|
||||
|
||||
const props = defineProps({
|
||||
chapter: {
|
||||
@@ -87,8 +87,12 @@
|
||||
};
|
||||
|
||||
const handleDelete = async () => {
|
||||
// TODO: Implémenter la suppression du chapitre
|
||||
console.log('Suppression du chapitre:', props.chapter.id);
|
||||
try {
|
||||
console.log(`MangaChapter: Suppression du chapitre ${props.chapter.number} (ID: ${props.chapter.id})`);
|
||||
await store.deleteChapter(props.chapter.id);
|
||||
} catch (error) {
|
||||
console.error('Erreur lors de la suppression du chapitre:', error);
|
||||
}
|
||||
};
|
||||
|
||||
const handleDownload = async () => {
|
||||
|
||||
Reference in New Issue
Block a user