f047_neu_Edit-der-Namen #28
@@ -14,3 +14,7 @@ export const load: PageServerLoad = async ({ params, url }) => {
|
|||||||
vorgang
|
vorgang
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Ersetze diese Verbindung zum Server durch API Endpunkte
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user