mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 11:44:34 -05:00
Docker Update and Fixes
This commit is contained in:
@@ -32,7 +32,14 @@
|
||||
|
||||
function handleScanComplete(item: any) {
|
||||
recentItems = [item, ...recentItems];
|
||||
// Don't close camera here - let user view the result sheet first
|
||||
// Camera will close when user clicks close button
|
||||
}
|
||||
|
||||
function handleCameraClose() {
|
||||
isCameraActive = false;
|
||||
// Dispatch event to notify MobileHomePage to refresh
|
||||
window.dispatchEvent(new CustomEvent('scan-complete'));
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
@@ -147,7 +154,7 @@
|
||||
|
||||
{#if isCameraActive}
|
||||
<CameraScreen
|
||||
onClose={() => (isCameraActive = false)}
|
||||
onClose={handleCameraClose}
|
||||
onScanComplete={handleScanComplete}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user