diff --git a/src/components/donations/AddDonationModal.svelte b/src/components/donations/AddDonationModal.svelte index f6858e6d..ab9dd2a2 100644 --- a/src/components/donations/AddDonationModal.svelte +++ b/src/components/donations/AddDonationModal.svelte @@ -7,9 +7,15 @@ DonorService, RunnerService, } from "@odit/lfk-client-js"; + import Select from "svelte-select"; import Toastify from "toastify-js"; export let modal_open; export let current_donations; + const getDonorLabel = (option) => + option.firstname + " " + (option.middlename || "") + " " + option.lastname; + const filterDonors = (label, filterText, option) => + label.toLowerCase().includes(filterText.toLowerCase()) || + option.id.toString().startsWith(filterText.toLowerCase()); function focus(el) { el.focus(); } @@ -158,7 +164,7 @@ class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">