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))
+ })
+})
+
@@ -135,8 +155,8 @@ const renderText = (text) => {
+
diff --git a/frontend/pages/historyitems/index.vue b/frontend/pages/historyitems/index.vue
index b44d9dd..9177c2f 100644
--- a/frontend/pages/historyitems/index.vue
+++ b/frontend/pages/historyitems/index.vue
@@ -1,5 +1,5 @@
@@ -9,12 +9,32 @@
:class="['text-xl','font-medium']"
>Zentrales Logbuch
+
+
+
+
+
+
+
-
+
\ No newline at end of file
+