diff --git a/src/App.vue b/src/App.vue index dd569a42..e1103637 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@
-

- Your Contact Info + + + + + + Share Contact Info

@@ -35,7 +42,7 @@
Click here to copy your DID to your clipboard. @@ -62,7 +66,7 @@ Then give it to them so they can paste it in their list of People.
-
+
You have no identitifiers yet, so -
-

- Scan Contact Info -

+
+ + +
-
+
@@ -187,6 +199,7 @@ import { Component, Vue } from "vue-facing-decorator"; import { useClipboard } from "@vueuse/core"; import { Capacitor } from "@capacitor/core"; import { QrcodeStream } from "vue-qrcode-reader"; +import type { RouteLocationNormalized, NavigationGuardNext } from "vue-router"; import QuickNav from "../components/QuickNav.vue"; import UserNameDialog from "../components/UserNameDialog.vue"; @@ -292,6 +305,11 @@ export default class ContactQRScanShow extends Vue { } } + async handleBack(): Promise { + await this.cleanupScanner(); + this.$router.back(); + } + async startScanning() { if (this.isCleaningUp) { logger.debug("Cannot start scanning during cleanup"); @@ -649,6 +667,17 @@ export default class ContactQRScanShow extends Vue { }); } + toastQRCodeHelp() { + this.$notify( + { + group: "alert", + type: "info", + text: "Click the QR code to copy your contact info to your clipboard.", + }, + 5000, + ); + } + onCopyDidToClipboard() { //this.onScanDetect([{ rawValue: this.qrValue }]); // good for testing useClipboard()