From 5dc80ce12a78af36518cf300df43ba1f87334758 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 6 Jul 2023 18:33:13 +0800 Subject: [PATCH] A bit more cleanup. Problem in Contacts to resolve. --- src/views/ContactsView.vue | 10 +++------- src/views/HomeView.vue | 9 ++++----- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 63417f12..8eeb7225 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -241,8 +241,9 @@ export default class ContactsView extends Vue { showGiveNumbers = false; showGiveTotals = true; showGiveConfirmed = true; + alertTitle = ""; + alertMessage = ""; - // 'created' hook runs when the Vue instance is first created async created() { await db.open(); const settings = await db.settings.get(MASTER_SETTINGS_KEY); @@ -267,10 +268,9 @@ export default class ContactsView extends Vue { const identity = JSON.parse(account?.identity || "null"); if (!identity) { - console.error( + throw new Error( "Attempted to load Give records with no identity available.", ); - return; } // load all the time I have given @@ -782,10 +782,6 @@ export default class ContactsView extends Vue { } } - // This same popup code is in many files. - alertTitle = ""; - alertMessage = ""; - public showGiveAmountsClassNames() { return { "bg-slate-500": this.showGiveTotals, diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 45bde507..827ab925 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -62,11 +62,11 @@ + -