summaryrefslogtreecommitdiffstats
path: root/src/models/contact.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-07 16:34:46 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-08 08:46:16 +0200
commitabb2e3154f097541a67736d35dfc538ffd5bde78 (patch)
treecb33c63c65cbcb305428ae92357abd66ceb14e10 /src/models/contact.js
parent2334527f1f10b84d2c6e6d05981d9dc7c7fb9255 (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.js11
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()
+ }
+
}