wechsel daher commit

This commit is contained in:
2025-08-07 12:41:07 +02:00
parent 3c8e521ced
commit 171b0e8546
2 changed files with 9 additions and 4 deletions

View File

@@ -14,3 +14,7 @@ export const load: PageServerLoad = async ({ params, url }) => {
vorgang vorgang
}; };
}; };
// Ersetze diese Verbindung zum Server durch API Endpunkte

View File

@@ -18,6 +18,8 @@
/** @type {import('./$types').PageData} */ /** @type {import('./$types').PageData} */
export let data; export let data;
console.log(data);
interface ListItem { interface ListItem {
name: string; name: string;
size: number; size: number;
@@ -130,7 +132,7 @@
} }
function constructMailToLink() { function constructMailToLink() {
const subject = "Link zum Tatvorgang"; const subject = 'Link zum Tatvorgang';
const link = $page.url.toString().split('?')[0]; const link = $page.url.toString().split('?')[0];
const body = `Hallo, const body = `Hallo,
@@ -152,8 +154,8 @@ Mit freundlichen Grüßen,
<div class="flex flex-col items-center justify-center w-full"> <div class="flex flex-col items-center justify-center w-full">
<h1 class="text-xl">Vorgang {vorgang.name}</h1> <h1 class="text-xl">Vorgang {vorgang.name}</h1>
{#if data?.user?.admin} {#if data?.user?.admin}
Zugangs-PIN: {vorgang.pin} Zugangs-PIN: {vorgang.pin}
<a href="{constructMailToLink()}"><Button>Share Link</Button></a> <a href={constructMailToLink()}><Button>Share Link</Button></a>
{/if} {/if}
</div> </div>
<div class="mx-auto flex justify-center max-w-7xl h-full"> <div class="mx-auto flex justify-center max-w-7xl h-full">
@@ -186,7 +188,6 @@ Mit freundlichen Grüßen,
}}>{item.name}</span }}>{item.name}</span
> >
{#if item.show_button} {#if item.show_button}
<button <button
style="padding: 2px" style="padding: 2px"