diff --git a/frontend/src/components/TopicSidebar.vue b/frontend/src/components/TopicSidebar.vue index bc99f6c..b296c7c 100644 --- a/frontend/src/components/TopicSidebar.vue +++ b/frontend/src/components/TopicSidebar.vue @@ -115,6 +115,11 @@ function submit() { emit('create', t) newTopic.value = '' } + +function confirmDeleteTopic(topic) { + if (!confirm(`Thema "${topic}" und alle zugehörigen Guides löschen?`)) return + emit('deleteTopic', topic) +}