This commit is contained in:
Team3
2026-05-29 15:03:35 +02:00
parent cf9f854dbf
commit 5cf0822f5a
3 changed files with 22 additions and 10 deletions

View File

@@ -58,6 +58,9 @@ async function handleAdd() {
newTitle.value = ''
const created = await createBaustein(props.topic, title)
bausteine.value.push(created)
reworkingSnapshots.set(created.id, created.updated_at)
reworkingIds.value = new Set([...reworkingIds.value, created.id])
startBausteinPolling()
}
async function handleDelete(id) {
@@ -186,8 +189,8 @@ onUnmounted(stopPolling)
<pre v-html="ex.code"></pre>
</div>
</div>
<p v-if="reworkingIds.has(b.id)" class="loading-text">Wird überarbeitet</p>
<p v-else-if="!b.description && !b.purpose" class="loading-text">Wird generiert</p>
<p v-if="!b.description && !b.purpose" class="loading-text">Wird generiert</p>
<p v-else-if="reworkingIds.has(b.id)" class="loading-text">Wird überarbeitet</p>
<div class="rework-row">
<input
v-model="reworkInputs[b.id]"