From e17140206cf10bd685d0e352cb85a3115a0a2f6f Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 22 Mar 2023 17:55:39 -0600 Subject: [PATCH] feat: add description to confirmation --- src/views/ContactsView.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index c6b2121..60ca56c 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -554,12 +554,19 @@ export default class ContactsView extends Vue { } else { toFrom = "from " + this.nameForDid(this.contacts, fromDid) + " to you"; } + let description; + if (this.hourDescriptionInput) { + description = " with description '" + this.hourDescriptionInput + "'"; + } else { + description = " with no description"; + } if ( confirm( "Are you sure you want to record " + this.hourInput + " hours " + toFrom + + description + "?" ) ) {