Updated QR scanner call

- Searched for all other (outdated) calls to QR scanner dialog and updated them
- Fixed vite HTML spec warning
This commit is contained in:
Jose Olarte III
2025-06-09 19:36:06 +08:00
parent 34194b2bbc
commit d3009406cf
5 changed files with 79 additions and 34 deletions

View File

@@ -298,6 +298,7 @@ Raymer * @version 1.0.0 */
import { UAParser } from "ua-parser-js";
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
import { Capacitor } from "@capacitor/core";
//import App from "../App.vue";
import EntityIcon from "../components/EntityIcon.vue";
@@ -1765,7 +1766,7 @@ export default class HomeView extends Vue {
this.$router.push({ name: "onboard-meeting-list" });
},
onOption2: () => {
this.$router.push({ name: "contact-qr" });
this.handleQRCodeClick();
},
onOption3: () => {
this.$router.push({ name: "share-my-contact-info" });
@@ -1872,5 +1873,13 @@ export default class HomeView extends Vue {
-1,
);
}
private handleQRCodeClick() {
if (Capacitor.isNativePlatform()) {
this.$router.push({ name: "contact-qr-scan-full" });
} else {
this.$router.push({ name: "contact-qr" });
}
}
}
</script>