feat: add description to confirmation
This commit is contained in:
@@ -554,12 +554,19 @@ export default class ContactsView extends Vue {
|
|||||||
} else {
|
} else {
|
||||||
toFrom = "from " + this.nameForDid(this.contacts, fromDid) + " to you";
|
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 (
|
if (
|
||||||
confirm(
|
confirm(
|
||||||
"Are you sure you want to record " +
|
"Are you sure you want to record " +
|
||||||
this.hourInput +
|
this.hourInput +
|
||||||
" hours " +
|
" hours " +
|
||||||
toFrom +
|
toFrom +
|
||||||
|
description +
|
||||||
"?"
|
"?"
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user