From 864067937509781b68afd2b2bf946c7c1ec0efa4 Mon Sep 17 00:00:00 2001 From: F-Node-Karlsruhe Date: Thu, 8 Dec 2022 15:20:07 +0100 Subject: [PATCH] stop camera when modal close --- frontend/src/views/Entry.vue | 9 ++++-- frontend/src/views/ScanModal.vue | 48 +++++++++++++++++++------------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/frontend/src/views/Entry.vue b/frontend/src/views/Entry.vue index c9e74ea..8421bb2 100644 --- a/frontend/src/views/Entry.vue +++ b/frontend/src/views/Entry.vue @@ -13,7 +13,7 @@
Credential File
- +
@@ -25,7 +25,7 @@
Credential Id
- +
@@ -37,7 +37,7 @@
Subject Id
- +
@@ -67,6 +67,9 @@ scan: '' } }, + mounted() { + document.getElementById('scan-modal').addEventListener('hidden.bs.modal', () => { this.scan = '' }); + }, methods: { onFileChange(e) { var files = Array.from(e.target.files || e.dataTransfer.files); diff --git a/frontend/src/views/ScanModal.vue b/frontend/src/views/ScanModal.vue index 537f974..27de2a3 100644 --- a/frontend/src/views/ScanModal.vue +++ b/frontend/src/views/ScanModal.vue @@ -7,7 +7,7 @@