forked from jsnbuchanan/crowd-funder-for-time-pwa
Stop scanner when cancelling
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user