Skip to content

Commit

Permalink
fixed vcf fn
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuraghavb committed Jan 7, 2022
1 parent c955cef commit f54ecd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/Vcard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BEGIN:VCARD
VERSION:3.0
N:{{ getSplitName }}
FN:{{ vCard.fn }}
FN:{{ getFullname }}
ORG:{{ vCard.org }}
TITLE:{{ vCard.title }}
TEL;TYPE=CELL:{{ vCard.cell }}
Expand Down Expand Up @@ -36,6 +36,11 @@ export default {
let ln = this.vCard.ln
return `${ln ? ln : ''};${fn ? fn : ''};;;`
},
getFullname() {
let fn = this.vCard.fn
let ln = this.vCard.ln
return (fn + ln).length ? `${fn ? fn : ''}${ln ? ' ' + ln : ''}` : null
},
},
}
</script>

0 comments on commit f54ecd3

Please sign in to comment.