From 4f37811dcceb4ef28f7e9c8e0e95b065543864f3 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Fri, 8 May 2026 20:20:44 +0200 Subject: [PATCH] =?UTF-8?q?Suche=20im=20zentralen=20Logbuch=20hinzuf=C3=BC?= =?UTF-8?q?gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/HistoryDisplay.vue | 32 ++++++++++++++++++++++++-- frontend/pages/historyitems/index.vue | 26 ++++++++++++++++++--- 2 files changed, 53 insertions(+), 5 deletions(-) diff --git a/frontend/components/HistoryDisplay.vue b/frontend/components/HistoryDisplay.vue index 665c9ad..fe2440f 100644 --- a/frontend/components/HistoryDisplay.vue +++ b/frontend/components/HistoryDisplay.vue @@ -14,6 +14,11 @@ const props = defineProps({ renderHeadline: { type: Boolean, default: false + }, + search: { + type: String, + required: false, + default: "" } }) @@ -72,6 +77,21 @@ const renderText = (text) => { return text } +const filteredItems = computed(() => { + const search = props.search.trim().toLowerCase() + + if (!search) return items.value + + return items.value.filter((item) => { + return [ + item.text, + item.created_by_profile?.full_name, + item.created_by ? "" : "FEDEO Bot", + dayjs(item.created_at).format("DD.MM.YY HH:mm") + ].some((value) => String(value || "").toLowerCase().includes(search)) + }) +}) + \ No newline at end of file +