diff --git a/src/App.vue b/src/App.vue
index f31139a38..cea3c505f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -146,13 +146,19 @@
move="transition duration-500"
move-delay="delay-300"
>
+
-
+
No
+
+
+
+
@@ -665,6 +687,7 @@ export default class AccountViewView extends Vue {
showB64Copy = false;
showPubCopy = false;
showAdvanced = false;
+ hideRegisterPromptOnNewContact = false;
showShortcutBvc = false;
subscription: PushSubscription | null = null;
warnIfProdServer = false;
@@ -726,6 +749,8 @@ export default class AccountViewView extends Vue {
this.isRegistered = !!settings?.isRegistered;
this.profileImageUrl = settings?.profileImageUrl as string;
this.showContactGives = !!settings?.showContactGivesInline;
+ this.hideRegisterPromptOnNewContact =
+ !!settings?.hideRegisterPromptOnNewContact;
this.showShortcutBvc = !!settings?.showShortcutBvc;
this.warnIfProdServer = !!settings?.warnIfProdServer;
this.warnIfTestServer = !!settings?.warnIfTestServer;
@@ -951,6 +976,28 @@ export default class AccountViewView extends Vue {
}
}
+ public async toggleHideRegisterPromptOnNewContact() {
+ const newSetting = !this.hideRegisterPromptOnNewContact;
+ try {
+ await db.open();
+ db.settings.update(MASTER_SETTINGS_KEY, {
+ hideRegisterPromptOnNewContact: newSetting,
+ });
+ this.hideRegisterPromptOnNewContact = newSetting;
+ } catch (err) {
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error Updating Setting",
+ text: "The setting may not have saved. Try again, maybe after restarting the app.",
+ },
+ -1,
+ );
+ console.error("Telling user to try again because:", err);
+ }
+ }
+
public async updateShowShortcutBvc(newSetting: boolean) {
try {
await db.open();
diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue
index 2c0a12e79..a7f94b094 100644
--- a/src/views/ContactQRScanShowView.vue
+++ b/src/views/ContactQRScanShowView.vue
@@ -71,6 +71,7 @@