listing of cases based on db

This commit is contained in:
2025-07-10 08:31:45 +02:00
parent 40599f4ffa
commit 307894c980
2 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,11 @@
import { getListOfVorgänge } from '$lib/server/vorgangService'; import { getListOfVorgänge, getVorgaenge } from '$lib/server/vorgangService';
import type { PageServerLoad } from '../../(token-based)/view/$types'; import type { PageServerLoad } from '../../(token-based)/view/$types';
export const load: PageServerLoad = async () => { export const load: PageServerLoad = async () => {
const caseList = await getListOfVorgänge(); // const caseList = await getListOfVorgänge();
const caseList = getVorgaenge();
return { return {
caseList caseList
}; };
}; };

View File

@@ -51,7 +51,7 @@
<!-- Ordner --> <!-- Ordner -->
<Folder /> <Folder />
<div class="min-w-0 flex-auto"> <div class="min-w-0 flex-auto">
<span class="text-sm font-semibold leading-6 text-gray-900">{item.name}</span> <span class="text-sm font-semibold leading-6 text-gray-900">{item[1]}</span>
<!-- Delete button --> <!-- Delete button -->
<button <button
style="padding: 2px" style="padding: 2px"