mirror of
https://github.com/MarcZierle/photo-log-frontend.git
synced 2025-04-18 01:44:37 +00:00
add timeout for refreshing loading spinner
This commit is contained in:
parent
80f1ff56ee
commit
7b6ad0c475
@ -213,6 +213,7 @@ export default {
|
||||
takePhoto() {
|
||||
this.isPhotoTaken = true
|
||||
|
||||
setTimeout(() => {
|
||||
this.photo.height = document.getElementById('camera_preview').offsetHeight
|
||||
|
||||
this.$refs.canvas.width = this.stream.width
|
||||
@ -228,6 +229,7 @@ export default {
|
||||
this.photo.src = this.$refs.canvas.toDataURL('image/png')//.replace('image/png', 'image/octet-stream')
|
||||
|
||||
this.showPhotoTakenModal = true
|
||||
}, 50)
|
||||
},
|
||||
uploadPhoto() {
|
||||
this.isUploading = true
|
||||
|
Loading…
Reference in New Issue
Block a user