This commit is contained in:
team3
2026-06-18 00:00:24 +02:00
parent 3c839861e7
commit 229880b7e6
15 changed files with 374 additions and 42 deletions

View File

@@ -245,6 +245,19 @@ async function handleBausteineClick({ instructions }) {
startPolling()
}
async function handleCreateThema({ topic, instructions, sourceType, sourceOrt }) {
uiError.value = null
try {
await apiCreateBausteine(topic, instructions, provider.value, sourceType, sourceOrt)
} catch (e) {
uiError.value = e.message
return
}
await loadTopics()
selectTopic(topic)
startPolling()
}
async function handleFormatClick({ format, instructions }) {
if (!selectedTopic.value) return
// Kein Duplikat-Start: läuft für Thema+Format schon eine Generierung, ignorieren
@@ -365,6 +378,7 @@ onMounted(async () => {
@toggleDark="toggleDark"
@select="selectTopic"
@create="createTopic"
@createThema="handleCreateThema"
@formatClick="handleFormatClick"
@bausteineClick="handleBausteineClick"
@cancelBausteine="handleCancelBausteine"