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 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,
@@ -153,7 +155,7 @@ Mit freundlichen Grüßen,
<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"