Suche im zentralen Logbuch hinzufügen

This commit is contained in:
2026-05-08 20:20:44 +02:00
parent d7eced3e77
commit 4f37811dcc
2 changed files with 53 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
const search = ref("")
</script>
<template>
@@ -9,12 +9,32 @@
:class="['text-xl','font-medium']"
>Zentrales Logbuch</h1>
</template>
<template #right>
<UInput
id="searchinput"
v-model="search"
icon="i-heroicons-magnifying-glass"
placeholder="Logbuch durchsuchen..."
class="w-72 max-w-full"
>
<template #trailing v-if="search">
<UButton
color="neutral"
variant="link"
icon="i-heroicons-x-mark"
:padded="false"
aria-label="Suche löschen"
@click="search = ''"
/>
</template>
</UInput>
</template>
</UDashboardNavbar>
<UDashboardPanelContent>
<HistoryDisplay/>
<HistoryDisplay :search="search"/>
</UDashboardPanelContent>
</template>
<style scoped>
</style>
</style>