Fix QR scanner loading state condition and remove unused video element reference
- Updated the loading state condition in qr-scanner.vue to check for camera permission correctly. - Removed the unused videoElement reference in useQRScanner.ts to clean up the code. These changes improve the functionality and clarity of the QR scanner component.
This commit is contained in:
parent
bebdc3c24c
commit
d31db59359
2 changed files with 1 additions and 3 deletions
|
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Loading state -->
|
||||
<div v-if="!isScanning && hasPermission !== false" class="absolute inset-0 flex items-center justify-center bg-black/50">
|
||||
<div v-if="!isScanning && hasPermission === true" class="absolute inset-0 flex items-center justify-center bg-black/50">
|
||||
<div class="text-center text-white">
|
||||
<Loader2 class="w-8 h-8 animate-spin mx-auto mb-2" />
|
||||
<p class="text-sm">Starting camera...</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue