From 572ae953f5ca300e075929a67929f5130c65b10d Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 4 Feb 2024 23:40:52 -0800
Subject: feat(popup): use popup component

---
 src/lib/Popup.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/lib/Popup.svelte')

diff --git a/src/lib/Popup.svelte b/src/lib/Popup.svelte
index 3d31a66e..3e0979c1 100644
--- a/src/lib/Popup.svelte
+++ b/src/lib/Popup.svelte
@@ -6,9 +6,10 @@
 	export let smallCard = false;
 	export let fullscreen = false;
 	export let show = true;
+	export let locked = false;
 
 	const handleClickOutside = (event: any) => {
-		if (event.target.classList.contains('popup')) {
+		if (!locked && event.target.classList.contains('popup')) {
 			show = false;
 
 			onLeave();
-- 
cgit v1.2.3

