This commit is contained in:
Team3
2026-06-06 22:30:14 +02:00
parent 80b964fef4
commit 07b2338e67
5 changed files with 108 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ const props = defineProps({
provider: { type: String, default: 'claude' },
})
const emit = defineEmits(['progressChanged'])
const isOnePager = computed(() => props.previewGuide?.format === 'OnePager')
// --- Inhalt laden ---
@@ -73,6 +75,7 @@ async function toggleChapter(title) {
try {
const res = await setProgress(props.previewGuide.id, title, newState)
doneChapters.value = new Set(res.chapters || [])
emit('progressChanged')
} catch {
const rollback = new Set(doneChapters.value)
if (newState) rollback.delete(title)