From f6985daec71e4d922acd8a9b2673fd41317b075f Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 12 Apr 2023 20:07:46 +0200 Subject: [PATCH] Cards details modal --- src/components/cards/CardsOverview.svelte | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/cards/CardsOverview.svelte b/src/components/cards/CardsOverview.svelte index 8eea5f76..256c8005 100644 --- a/src/components/cards/CardsOverview.svelte +++ b/src/components/cards/CardsOverview.svelte @@ -47,12 +47,6 @@ })); } ); - const getRunnerLabel = (option) => - option?.firstname + - " " + - (option?.middlename || "") + - " " + - (option?.lastname || "{$_('non-blanko')}"); const columns = [ { @@ -81,7 +75,13 @@ header: () => $_("action"), cell: (info) => { return renderComponent(TableActions, { - detailsLink: `./${info.row.original.id}`, + detailsAction: () => { + open_edit_modal( + current_cards[ + current_cards.findIndex((r) => r.id == info.row.original.id) + ] + ); + }, deleteAction: () => { active_delete = current_cards[