From ab7e20becd10b4a8d094c651542cd3e927da362a Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 12 Apr 2024 02:20:43 +0200 Subject: [PATCH] Add searching for member --- resources/js/views/activity/Masslist.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/js/views/activity/Masslist.vue b/resources/js/views/activity/Masslist.vue index 449badce..ff2acb7e 100644 --- a/resources/js/views/activity/Masslist.vue +++ b/resources/js/views/activity/Masslist.vue @@ -15,6 +15,7 @@ > +
@@ -52,6 +53,11 @@ const props = defineProps({ }, }); +const searchText = ref(''); +watch(searchText, (newValue) => { + reloadReal(1); +}); + const meta = ref({ activity_id: null, subactivity_id: null, @@ -77,7 +83,7 @@ watch(meta, async (newValue) => { }, { deep: true }); async function reloadReal(page) { - const results = await search('', [], { page: page, hitsPerPage: 80 }); + const results = await search(searchText.value, [], { page: page, hitsPerPage: 80 }); members.value = results; } reloadReal(1);