From c588ba1c96790b614129143af5aa8f0333f258ef Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 15 Jul 2022 17:57:43 +0200 Subject: Fix copy to full name button Signed-off-by: Richard Steinmetz --- src/components/Actions/ActionCopyNtoFN.vue | 11 +++++------ src/components/Properties/PropertyActions.vue | 11 ++++++++--- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/components/Actions/ActionCopyNtoFN.vue b/src/components/Actions/ActionCopyNtoFN.vue index 4f4335b8..771880b6 100644 --- a/src/components/Actions/ActionCopyNtoFN.vue +++ b/src/components/Actions/ActionCopyNtoFN.vue @@ -21,7 +21,7 @@ --> @@ -37,13 +37,12 @@ export default { mixins: [ActionsMixin], methods: { copyNToFN() { - console.info(this.component) - if (this.component.contact.vCard.hasProperty('n')) { + if (this.component.localContact.vCard.hasProperty('n')) { // Stevenson;John;Philip,Paul;Dr.;Jr.,M.D.,A.C.P. // -> John Stevenson - const n = this.component.contact.vCard.getFirstPropertyValue('n') - this.component.contact.fullName = n.slice(0, 2).reverse().join(' ') - this.component.updateContact() + const n = this.component.localContact.vCard.getFirstPropertyValue('n') + this.component.localContact.fullName = n.slice(0, 2).reverse().join(' ') + this.component.$emit('update') } }, }, diff --git a/src/components/Properties/PropertyActions.vue b/src/components/Properties/PropertyActions.vue index c604de86..2d1388a3 100644 --- a/src/components/Properties/PropertyActions.vue +++ b/src/components/Properties/PropertyActions.vue @@ -28,9 +28,10 @@ {{ t('contacts', 'Delete') }} - + @@ -53,6 +54,10 @@ export default { type: Array, default: () => [], }, + propertyComponent: { + type: Object, + required: true, + }, }, methods: { -- cgit v1.2.3 From a6f367abaa6128c18f9db106f4dfc28df062261c Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 15 Jul 2022 18:12:17 +0200 Subject: Fix omit birthdate year toggle Signed-off-by: Richard Steinmetz --- src/components/Properties/PropertyDateTime.vue | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue index 1d8b1b6a..3bf5392e 100644 --- a/src/components/Properties/PropertyDateTime.vue +++ b/src/components/Properties/PropertyDateTime.vue @@ -73,6 +73,7 @@ -- cgit v1.2.3