diff --git a/frontend/src/lib/components/admin/table/Table.svelte b/frontend/src/lib/components/admin/table/Table.svelte index 571a489..e4803b5 100644 --- a/frontend/src/lib/components/admin/table/Table.svelte +++ b/frontend/src/lib/components/admin/table/Table.svelte @@ -3,6 +3,7 @@ import type { CandidatePreview } from '$lib/stores/candidate'; export let candidates: Array = []; + export let showCreatedAt: boolean; const formatRustChronoDateTime = (date?: string) => { if (!date) return ''; @@ -24,7 +25,9 @@ Obor Rodné číslo Link - Vytvořeno + {#if showCreatedAt} + Vytvořeno + {/if} @@ -47,9 +50,11 @@ {candidate.relatedApplications?.filter((a) => a !== candidate.applicationId)} - - {formatRustChronoDateTime(candidate.createdAt)} - + {#if showCreatedAt} + + {formatRustChronoDateTime(candidate.createdAt)} + + {/if} diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index e001f35..f4eccb0 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -155,7 +155,7 @@ {/if} - deleteCandidate(event.detail.id)} /> +
deleteCandidate(event.detail.id)} />