mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Start with camera off
This commit is contained in:
committed by
Andrew Camilleri
parent
5c792c9e09
commit
80483ba76f
@@ -79,7 +79,7 @@ function initCameraScanningApp(title, onDataSubmit, modalId) {
|
||||
errorMessage: null,
|
||||
workload: [],
|
||||
camera: 0,
|
||||
cameraOff: false,
|
||||
cameraOff: true,
|
||||
cameras: ["auto"],
|
||||
decoder: null
|
||||
}
|
||||
@@ -87,10 +87,11 @@ function initCameraScanningApp(title, onDataSubmit, modalId) {
|
||||
mounted() {
|
||||
if (this.isModal) {
|
||||
const modal = document.getElementById(this.modalId);
|
||||
modal.addEventListener('shown.bs.modal', () => { this.isLoaded = true; });
|
||||
modal.addEventListener('hide.bs.modal', () => { this.isLoaded = false; });
|
||||
modal.addEventListener('shown.bs.modal', () => { this.isLoaded = true; this.cameraOff = false; });
|
||||
modal.addEventListener('hide.bs.modal', () => { this.isLoaded = false; this.cameraOff = true; });
|
||||
} else {
|
||||
this.isLoaded = true;
|
||||
this.cameraOff = false;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user