diff --git a/src/App.vue b/src/App.vue index b2626b1..4cbff0a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,8 @@ const { textInput, error, errorColor, - hasQr, + qrReady, + showModal, qrCanvasRef, qrFrameRef, generateQR, @@ -26,12 +27,12 @@ const statusClass = computed(() => ) function onKeydown(event) { - if (event.key === 'Escape' && hasQr.value) { + if (event.key === 'Escape' && showModal.value) { closeQrModal() } } -watch(hasQr, (open) => { +watch(showModal, (open) => { document.body.style.overflow = open ? 'hidden' : '' }) @@ -84,12 +85,19 @@ onUnmounted(() => {