f047_neu_Edit-der-Namen #28

Merged
trachi93 merged 14 commits from f047_neu_Edit-der-Namen into development 2025-08-19 09:30:13 +02:00
2 changed files with 9 additions and 4 deletions
Showing only changes of commit 171b0e8546 - Show all commits

View File

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

View File

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