From 16d5c917d237c6df2867d88b7d817011300e888e Mon Sep 17 00:00:00 2001
From: Jose Olarte III
Before you can upload a photo, a friend needs to register you.
-
If they are not nearby to scan QR codes, you each can tap on the QR code
@@ -502,27 +502,27 @@
then don't use it.
As for data & privacy:
-
@@ -576,6 +576,7 @@
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
import { useClipboard } from "@vueuse/core";
+import { Capacitor } from "@capacitor/core";
import * as Package from "../../package.json";
import QuickNav from "../components/QuickNav.vue";
@@ -632,5 +633,13 @@ export default class HelpView extends Vue {
}
this.$router.push({ name: "home" });
}
+
+ private handleQRCodeClick() {
+ if (Capacitor.isNativePlatform()) {
+ this.$router.push({ name: "contact-qr-scan-full" });
+ } else {
+ this.$router.push({ name: "contact-qr" });
+ }
+ }
}
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 1ce8e83a..0c69b60e 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -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" });
+ }
+ }
}
diff --git a/src/views/ProjectsView.vue b/src/views/ProjectsView.vue
index 6b59749c..f3ebd5ba 100644
--- a/src/views/ProjectsView.vue
+++ b/src/views/ProjectsView.vue
@@ -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" });
+ }
+ }
}
From 1b2d4b623a24d43fd4e1f9b21b8b65e209a15efa Mon Sep 17 00:00:00 2001
From: Jose Olarte III