feat(donorsoverview): Dynamicly add newly generated donors

This commit is contained in:
2023-04-19 16:55:14 +02:00
parent 7aec050419
commit 352551e168
3 changed files with 170 additions and 93 deletions

View File

@@ -35,6 +35,13 @@
let modal_open = false;
let delete_donor = {};
export let current_donors = [];
export const addDonors = (donors) => {
current_donors = current_donors.concat(...donors);
options.update((options) => ({
...options,
data: current_donors,
}));
};
//Section table
const columns = [