From 8a0c3c16ed0d56e45bd17afc4ff2131bf26ca0a5 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 4 Apr 2023 13:06:52 -0600 Subject: [PATCH] add confirmation before confirming hours, plus some other verbiage --- project.yaml | 1 - src/views/ContactAmountsView.vue | 8 ++++++-- src/views/ContactsView.vue | 17 ++++++++++++----- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/project.yaml b/project.yaml index 395944b43..1880bd810 100644 --- a/project.yaml +++ b/project.yaml @@ -6,7 +6,6 @@ - replace user-affecting console.logs with error messages (eg. catches) - contacts v1 : - - produce a video assignee:trent - .2 warn about amounts when you cannot see them - .1 remove 'copy' until it works - .5 switch to prod server diff --git a/src/views/ContactAmountsView.vue b/src/views/ContactAmountsView.vue index e422c185d..1369ce808 100644 --- a/src/views/ContactAmountsView.vue +++ b/src/views/ContactAmountsView.vue @@ -72,7 +72,7 @@ Confirmed - @@ -239,7 +239,11 @@ export default class ContactsView extends Vue { } } - async confirm(record: GiveServerRecord) { + async confirmGiven(record: GiveServerRecord) { + if (!confirm("Are you sure you want to mark this as confirmed?")) { + return; + } + // Make claim // I use clone here because otherwise it gets a Proxy object. // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 2669fbdbc..50282d4b6 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -166,7 +166,11 @@ /* eslint-enable prettier/prettier */ }} - {{ givenByMeDescriptions[contact.did] || "Nothing" }} + {{ + givenByMeDescriptions[contact.did] + ? "Most recently: " + givenByMeDescriptions[contact.did] + : "(None given yet.)" + }}