add new component searchable select close #28

This commit is contained in:
Adrian Zürcher
2025-11-17 16:57:13 +01:00
parent 39e5479947
commit 09299c65de
3 changed files with 149 additions and 19 deletions

View File

@@ -1,7 +1,9 @@
<template>
<DialogFrame ref="dialog" :header-title="localTitle">
<div class="row justify-center">
<q-select
<SearchableSelect
class="q-mx-xl"
dense
autofocus
:label="$t('event')"
filled
@@ -12,7 +14,7 @@
@keyup.enter="addAttendees"
map-options
emit-value
></q-select>
></SearchableSelect>
</div>
<div class="row justify-center">
<q-btn class="q-ma-md" color="primary" no-caps @click="addAttendees">{{ localTitle }}</q-btn>
@@ -40,6 +42,7 @@ import type { Members } from 'src/vueLib/models/member';
import EditAllDialog from 'src/components/EventEditAllDialog.vue';
import { useAttendeesTable } from 'src/vueLib/tables/attendees/AttendeesTable';
import { useEventTable } from 'src/vueLib/tables/events/EventsTable';
import SearchableSelect from 'src/vueLib/general/SearchableSelect .vue';
const dialog = ref();
const newEventRef = ref();
@@ -105,7 +108,7 @@ async function addAttendees() {
NotifyResponse(err, 'error');
});
await updateAttendees();
await updateAttendees(0);
updateEvents();
}