diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-09 08:24:54 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-09 08:32:28 +0200 |
commit | 6a908b3bc81345aea04a736ccc8a78943d9a413f (patch) | |
tree | a46e1cb5db2d46cc19359996e6f693fdda46e875 /src/mixins/PropertyMixin.js | |
parent | 6a9025c57dfd738d3d25651853bc38e15db90f1c (diff) |
Use localcontact as default changes on properties
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/mixins/PropertyMixin.js')
-rw-r--r-- | src/mixins/PropertyMixin.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mixins/PropertyMixin.js b/src/mixins/PropertyMixin.js index 8a86e645..170d461a 100644 --- a/src/mixins/PropertyMixin.js +++ b/src/mixins/PropertyMixin.js @@ -69,7 +69,7 @@ export default { type: Array, default: () => [] }, - contact: { + localContact: { type: Contact, default: null } @@ -141,7 +141,7 @@ export default { const group = propGroup.split('.')[0] const name = propGroup.split('.')[1] - this.contact.vCard.addPropertyWithValue(`${group}.x-ablabel`, label) + this.localContact.vCard.addPropertyWithValue(`${group}.x-ablabel`, label) // force update the main design sets if (ICAL.design.vcard.property[name]) { @@ -157,7 +157,7 @@ export default { }, getNcGroupCount() { - const props = this.contact.jCal[1] + const props = this.localContact.jCal[1] .map(prop => prop[0].split('.')[0]) // itemxxx.adr => itemxxx .filter(name => name.startsWith('nextcloud')) // filter nextcloudxxx.adr .map(prop => parseInt(prop.split('nextcloud')[1])) // nextcloudxxx => xxx |