Browse Source

Stop scanner when cancelling

pull/133/head
Jose Olarte III 3 weeks ago
parent
commit
1b7c5decd3
  1. 7
      src/views/ContactQRScanView.vue

7
src/views/ContactQRScanView.vue

@ -11,7 +11,7 @@
<div class="text-center">
<button
class="text-center text-white leading-none bg-slate-400 p-2 rounded-full"
@click="$router.back()"
@click="handleBack"
>
<font-awesome icon="xmark" class="w-[1em]"></font-awesome>
</button>
@ -416,6 +416,11 @@ export default class ContactQRScan extends Vue {
logger.info("App resumed, scanner can be restarted by user");
this.isScanning = false;
}
async handleBack() {
await this.cleanupScanner();
this.$router.back();
}
}
</script>

Loading…
Cancel
Save