feat: add description to confirmation

This commit is contained in:
2023-03-22 17:55:39 -06:00
parent 7a7c5b6ba1
commit e17140206c

View File

@@ -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 +
"?"
)
) {