From 5f5801e11eae0ad190a08a59d12db433935d097c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 13 Nov 2018 17:42:52 +0100 Subject: Select the fullname field if it is still set to New contact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/views/Contacts.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/views') diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index 14395b89..dd95f4c2 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -108,7 +108,7 @@ export default { importState() { return this.$store.getters.getImportState }, - + // first enabled addressbook of the list defaultAddressbook() { return this.addressbooks.find(addressbook => !addressbook.readOnly && addressbook.enabled) @@ -239,7 +239,7 @@ export default { methods: { newContact() { let contact = new Contact('BEGIN:VCARD\nVERSION:4.0\nEND:VCARD', this.defaultAddressbook) - contact.fullName = 'New contact' + contact.fullName = t('contacts', 'New contact') // itterate over all properties (filter is not usable on objects and we need the key of the property) for (let name in rfcProps.properties) { if (rfcProps.properties[name].default) { -- cgit v1.2.3