Add has_nami_field to participant component

This commit is contained in:
philipp lang 2024-06-20 23:31:09 +02:00
parent 43c528fc46
commit 820b317b57
2 changed files with 10 additions and 1 deletions

View File

@ -32,7 +32,7 @@
</ui-popup>
<ui-popup v-if="showing !== null" :heading="`Teilnehmende für ${showing.name}`" full @close="showing = null">
<participants :url="showing.links.participant_index"></participants>
<participants :has-nami-field="showing.has_nami_field" :root-url="showing.links.participant_root_index" :url="showing.links.participant_index"> </participants>
</ui-popup>
<ui-popup v-if="single !== null && single.config !== null" :heading="`Veranstaltung ${single.id ? 'bearbeiten' : 'erstellen'}`" full @close="cancel">

View File

@ -82,6 +82,15 @@ const props = defineProps({
required: true,
validator: (value) => value.startsWith('http'),
},
rootUrl: {
type: String,
required: true,
validator: (value) => value.startsWith('http'),
},
hasNamiField: {
type: Boolean,
required: true,
},
});
var {meta, data, reload, reloadPage, axios, remove, toFilterString} = useApiIndex(props.url, 'participant');