diff --git a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte index acb3132..1f780c6 100644 --- a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte +++ b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte @@ -59,7 +59,7 @@
- showDetails = !showDetails}> + showDetails = !showDetails}>
diff --git a/frontend/src/lib/components/dashboard/InfoButton.svelte b/frontend/src/lib/components/dashboard/InfoButton.svelte index 349a8ed..15402d6 100644 --- a/frontend/src/lib/components/dashboard/InfoButton.svelte +++ b/frontend/src/lib/components/dashboard/InfoButton.svelte @@ -4,6 +4,8 @@ import { createEventDispatcher } from 'svelte'; import { submissionProgress, UploadStatus } from '$lib/stores/portfolio'; + export let showDetails: boolean; + const dispatch = createEventDispatcher(); const showInfo = () => { @@ -16,10 +18,11 @@
+
showInfo()} on:keydown={(_) => showInfo()} use:tippy={{ - content: "Zobrazit osobní údaje", + content: (showDetails ? "Skrýt" : "Zobrazit") + " osobní údaje", placement: 'top', showOnCreate: false, delay: 0