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

@@ -268,6 +268,7 @@
import { AxiosRequestConfig } from "axios";
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
import { Capacitor } from "@capacitor/core";
import { NotificationIface, USE_DEXIE_DB } from "../constants/app";
import { db, retrieveSettingsForActiveAccount } from "../db/index";
@@ -559,7 +560,7 @@ export default class ProjectsView extends Vue {
this.$router.push({ name: "share-my-contact-info" });
},
onYes: async () => {
this.$router.push({ name: "contact-qr" });
this.handleQRCodeClick();
},
noText: "we will share another way",
yesText: "we are nearby with cameras",
@@ -603,5 +604,13 @@ export default class ProjectsView extends Vue {
"hover:border-slate-400": !this.showProjects,
};
}
private handleQRCodeClick() {
if (Capacitor.isNativePlatform()) {
this.$router.push({ name: "contact-qr-scan-full" });
} else {
this.$router.push({ name: "contact-qr" });
}
}
}
</script>