This commit is contained in:
team3
2026-05-28 18:16:22 +02:00
parent c1370a9f6a
commit 4594c2e372

View File

@@ -115,6 +115,11 @@ function submit() {
emit('create', t) emit('create', t)
newTopic.value = '' newTopic.value = ''
} }
function confirmDeleteTopic(topic) {
if (!confirm(`Thema "${topic}" und alle zugehörigen Guides löschen?`)) return
emit('deleteTopic', topic)
}
</script> </script>
<template> <template>
@@ -140,7 +145,7 @@ function submit() {
@click="emit('select', t)" @click="emit('select', t)"
> >
<span>{{ t }}</span> <span>{{ t }}</span>
<button class="delete-topic" @click.stop="emit('deleteTopic', t)" title="Löschen">&times;</button> <button class="delete-topic" @click.stop="confirmDeleteTopic(t)" title="Löschen">&times;</button>
</li> </li>
</ul> </ul>