diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-07 16:34:46 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-08 08:46:16 +0200 |
commit | abb2e3154f097541a67736d35dfc538ffd5bde78 (patch) | |
tree | cb33c63c65cbcb305428ae92357abd66ceb14e10 /src/models/contact.js | |
parent | 2334527f1f10b84d2c6e6d05981d9dc7c7fb9255 (diff) |
Details properties update and addressbook template
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models/contact.js')
-rw-r--r-- | src/models/contact.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index a517f751..a4bbad99 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -208,4 +208,15 @@ export default class Contact { return this.displayName } + /** + * Return all the properties as Property objects + * + * @readonly + * @memberof Contact + * @returns {Property[]} http://mozilla-comm.github.io/ical.js/api/ICAL.Property.html + */ + get properties() { + return this.vCard.getAllProperties() + } + } |