summaryrefslogtreecommitdiffstats
path: root/src/views
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-04 11:06:27 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-04 11:07:11 +0100
commitdd51a36931d4ba450fb4a8d7fe5c1609892d25b6 (patch)
tree5261739552340d953c4952e8c8f0fc873fee9696 /src/views
parent11e3a3bd87de2c3ddf757943e898e78a8df7d1a0 (diff)
Add PRODID to new contacts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Contacts.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue
index d9412555..19663370 100644
--- a/src/views/Contacts.vue
+++ b/src/views/Contacts.vue
@@ -265,7 +265,7 @@ export default {
methods: {
async newContact() {
- let contact = new Contact('BEGIN:VCARD\nVERSION:4.0\nEND:VCARD', this.defaultAddressbook)
+ let contact = new Contact(`BEGIN:VCARD\nVERSION:4.0\nPRODID:-//Nextcloud Contacts v${oca_contacts.versionstring}\nEND:VCARD`, this.defaultAddressbook)
const properties = rfcProps.properties(this)
contact.fullName = t('contacts', 'New contact')
// itterate over all properties (filter is not usable on objects and we need the key of the property)