From 1aa20018603ec4bdfd9240699c84c73ec273f651 Mon Sep 17 00:00:00 2001 From: EETagent Date: Mon, 5 Dec 2022 01:03:48 +0100 Subject: [PATCH] feat: make search textfield work --- .../(authenticated)/dashboard/+page.server.ts | 2 +- .../(authenticated)/dashboard/+page.svelte | 29 ++++++++++++------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts index 6dc03b4..16e5a0a 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts @@ -3,7 +3,7 @@ import type { CandidatePreview } from '$lib/stores/candidate'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ fetch }) => { - let candidatePreview: [CandidatePreview] = [{}]; + let candidatePreview: Array = [{}]; try { candidatePreview = await apiListCandidates(fetch); } catch (e) { diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index d7f53f9..ed6513d 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -1,16 +1,13 @@ {#if createCandidateModal} getCandidates()} on:close={() => (createCandidateModal = false)} /> {/if} @@ -80,7 +89,7 @@

Uchazeči

- +