From 17c6291f1dbf436cf23854acbe0dc41ef20a0609 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Jul 2024 21:23:58 +0300 Subject: [PATCH] qr-generator: Improve download buttons --- src/lib/components/action-card-item.svelte | 12 +++++++-- src/routes/qr-generator/+page.svelte | 25 +++++++------------ .../qr-generator/qr-download-button.svelte | 13 ++++++++++ 3 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 src/routes/qr-generator/qr-download-button.svelte diff --git a/src/lib/components/action-card-item.svelte b/src/lib/components/action-card-item.svelte index ef75b22..cb164c8 100644 --- a/src/lib/components/action-card-item.svelte +++ b/src/lib/components/action-card-item.svelte @@ -4,14 +4,16 @@ export let icon = undefined; export let label; - export let href; + export let href = null; export let tooltip = undefined; + export let enabled = true;
  • - {#if !href} + {#if href === null}