diff --git a/apps/app/src/pages/organisation/index.vue b/apps/app/src/pages/organisation/index.vue index 2c68f974..27d7485b 100644 --- a/apps/app/src/pages/organisation/index.vue +++ b/apps/app/src/pages/organisation/index.vue @@ -95,18 +95,22 @@ const roleLabelMap: Record = { volunteer_coordinator: 'Vrijwilliger Coördinator', } +const memberSearch = ref('') + const memberHeaders = computed(() => { - const headers: Array<{ title: string; key: string; sortable?: boolean }> = [ - { title: 'Naam', key: 'full_name' }, - { title: 'E-mailadres', key: 'email' }, - { title: 'Rol', key: 'role' }, + const headers: Array<{ title: string; key: string; sortable?: boolean; align?: 'start' | 'end' }> = [ + { title: 'Naam', key: 'full_name', sortable: true }, + { title: 'E-mailadres', key: 'email', sortable: true }, + { title: 'Rol', key: 'role', sortable: true }, ] if (isOrgAdmin.value) { - headers.push({ title: 'Acties', key: 'actions', sortable: false }) + headers.push({ title: 'Acties', key: 'actions', sortable: false, align: 'end' }) } return headers }) +const memberSortBy = [{ key: 'full_name', order: 'asc' as const }] + function getInitials(name: string): string { return name .split(' ') @@ -328,32 +332,43 @@ function confirmRevokeInvitation() {