Moved code around

This commit is contained in:
Nicolai Ort 2023-04-12 19:28:10 +02:00
parent 0265a59b82
commit 239f79fecb
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -31,6 +31,16 @@
$: selected = $: selected =
$table?.getSelectedRowModel().rows.map((row) => row.index) || []; $table?.getSelectedRowModel().rows.map((row) => row.index) || [];
$: active_delete = undefined;
let dataLoaded = false;
export let current_runners = [];
$: sponsoring_contracts_show = selected.length > 0;
$: cards_show = selected.length > 0;
$: certificates_show = selected.length > 0;
$: teams = [];
$: orgs = [];
//Section table
const columns = [ const columns = [
{ {
accessorKey: "id", accessorKey: "id",
@ -103,17 +113,6 @@
enableSorting: false, enableSorting: false,
}, },
]; ];
//
$: active_delete = undefined;
let dataLoaded = false;
export let current_runners = [];
$: sponsoring_contracts_show = selected.length > 0;
$: cards_show = selected.length > 0;
$: certificates_show = selected.length > 0;
$: teams = [];
$: orgs = [];
const options = writable({ const options = writable({
data: [], data: [],
columns: columns, columns: columns,