Skip to content

Commit

Permalink
add info button to alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Aug 29, 2024
1 parent 8381b40 commit 1896800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/components/AlertMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let message = '';
export let title = '';
export let infotitle = 'Info';
export let infotitle = '';
export let lastpage = '';
export let infopage = '';
export let onclick = () => {};
Expand All @@ -15,11 +15,11 @@
<InfoCircleSolid class="h-5 w-5" />
<span class="text-lg font-medium"> {title} </span>
</div>
<p class="mb-4 mt-2 text-sm">{message}</p>
<p class="mb-4 mt-2">{message}</p>
<div class="flex gap-2">
{#if infopage != ''}
<Button size="xs" href={infopage}><EyeSolid class="me-2 h-4 w-4" />{infotitle}</Button>
<Button size="md" href={infopage}><EyeSolid class="me-2 h-4 w-4" />{infotitle}</Button>
{/if}
<Button size="xs" outline href={lastpage} on:click={onclick}>Verstanden</Button>
<Button size="md" outline href={lastpage} on:click={onclick}>Verstanden</Button>
</div>
</Alert>
2 changes: 2 additions & 0 deletions src/lib/components/ChildrenRegistration.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
title="Fehler"
message="Bitte füllen Sie alle Felder aus."
lastpage="/childLand/childDataInput"
infopage="/info"
infotitle="Was passiert mit den Daten"
onclick={() => {
showAlert = false;
}}
Expand Down

0 comments on commit 1896800

Please sign in to comment.