forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user