diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Qr.svelte | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte index 51616eac..2b37dc9d 100644 --- a/src/components/Qr.svelte +++ b/src/components/Qr.svelte @@ -3,7 +3,7 @@ import { onMount } from 'svelte'; import { copy } from '$lib/utils'; - export let image, text, qr; + export let image, text, qr, disabled; $: update(text); let update = async (text) => { @@ -32,13 +32,18 @@ }; </script> -<div bind:this={qr} on:click={() => copy(text)} /> +<div + bind:this={qr} + on:click={() => { + if (!disabled) copy(text); + }} +/> <style> div { - @apply px-5 - md:px-0 - w-[292px] + @apply px-5 + md:px-0 + w-[292px] h-[302px] md:w-[300px] md:h-[300px] |
