chore: clean up console logs

This commit is contained in:
Matthew Raymer
2025-07-26 06:13:47 +00:00
parent ac22e37628
commit c628c78565
11 changed files with 15 additions and 30 deletions

View File

@@ -828,19 +828,16 @@ export default class ContactsView extends Vue {
* Handle registration prompt for new contacts
*/
private async handleRegistrationPrompt(newContact: Contact): Promise<void> {
console.log("[ContactsView] handleRegistrationPrompt", this.isRegistered, this.hideRegisterPromptOnNewContact, newContact.registered);
if (
this.isRegistered === false || // the current Identity is not registered OR
this.hideRegisterPromptOnNewContact === true || // the user has hidden the registrationprompt OR
newContact.registered === true // the new contact is already registered
) {
// if any of the above are true, we do not want to show the registration prompt
console.log("[ContactsView] handleRegistrationPrompt we do not want to show the registration prompt");
return;
}
setTimeout(() => {
console.log("[ContactsView] handleRegistrationPrompt setTimeout");
this.$notify(
{
group: "modal",
@@ -848,22 +845,18 @@ export default class ContactsView extends Vue {
title: "Register",
text: "Do you want to register them?",
onCancel: async (stopAsking?: boolean) => {
console.log("[ContactsView] handleRegistrationPrompt onCancel", stopAsking);
await this.handleRegistrationPromptResponse(stopAsking);
},
onNo: async (stopAsking?: boolean) => {
console.log("[ContactsView] handleRegistrationPrompt onNo", stopAsking);
await this.handleRegistrationPromptResponse(stopAsking);
},
onYes: async () => {
console.log("[ContactsView] handleRegistrationPrompt onYes");
await this.register(newContact);
},
promptToStopAsking: true,
},
-1,
);
console.log("[ContactsView] handleRegistrationPrompt setTimeout done");
}, 1000);
}
@@ -1254,17 +1247,14 @@ export default class ContactsView extends Vue {
*/
public handleQRCodeClick() {
console.log("[ContactsView] handleQRCodeClick method called");
this.$logAndConsole(
"[ContactsView] handleQRCodeClick method called",
false,
);
if (Capacitor.isNativePlatform()) {
console.log("[ContactsView] Navigating to contact-qr-scan-full");
this.$router.push({ name: "contact-qr-scan-full" });
} else {
console.log("[ContactsView] Navigating to contact-qr");
this.$router.push({ name: "contact-qr" });
}
}