Fix missing detection progress indicator on camera load

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-03-05 06:48:07 -07:00
parent 7f9a7cb2d2
commit 77240fe9bf

View File

@@ -567,8 +567,10 @@
if (this.videoAvailable) { if (this.videoAvailable) {
this.cameraStream.getTracks().forEach( t => t.stop()) this.cameraStream.getTracks().forEach( t => t.stop())
this.videoAvailable = false this.videoAvailable = false
this.detecting = true
resolve(searchImage) resolve(searchImage)
} else if (this.isCordova && this.imageLoadMode == "camera") { } else if (this.isCordova && this.imageLoadMode == "camera") {
this.detecting = true
resolve('data:image/jpg;base64,' + searchImage) resolve('data:image/jpg;base64,' + searchImage)
} else { } else {
const searchImage = this.$refs.image_chooser.files[0] const searchImage = this.$refs.image_chooser.files[0]