KI-AGENT: Wiki-Neuanlage repariert #178

Der Wiki-Neu-Button nutzt nun das aktuelle DropdownMenu mit onSelect-Callbacks, sodass neue Seiten und Ordner wieder erstellt werden können.
This commit is contained in:
2026-05-12 10:07:55 +02:00
parent 34f537238e
commit 5a2682c835

View File

@@ -11,9 +11,9 @@
</h2>
<div class="flex items-center gap-1">
<UDropdown :items="rootMenuItems" :popper="{ placement: 'bottom-end' }">
<UDropdownMenu :items="rootMenuItems" :content="{ align: 'end' }">
<UButton color="gray" variant="ghost" icon="i-heroicons-plus" size="sm" />
</UDropdown>
</UDropdownMenu>
<UButton @click="isSidebarOpen = false" color="gray" variant="ghost" icon="i-heroicons-chevron-double-left" size="sm" />
</div>
</div>
@@ -200,8 +200,8 @@ async function handleModalConfirm() {
}
const rootMenuItems = [
[{ label: 'Neue Seite', icon: 'i-heroicons-document-plus', click: () => openWikiAction('create', null, false) }],
[{ label: 'Neuer Ordner', icon: 'i-heroicons-folder-plus', click: () => openWikiAction('create', null, true) }]
[{ label: 'Neue Seite', icon: 'i-heroicons-document-plus', onSelect: () => openWikiAction('create', null, false) }],
[{ label: 'Neuer Ordner', icon: 'i-heroicons-folder-plus', onSelect: () => openWikiAction('create', null, true) }]
]
// --- EDITOR ACTIONS (Identisch wie vorher) ---