summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-27 19:06:51 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-27 19:06:51 +0200
commitd0db1895ac094f7e6198dd2298fa88207ab8ad8f (patch)
treef42b7c1ef754649061f626c6dd95ba1a28446576 /src
parentfde4ba27f4356b220857e17ca9c358c76b81aec1 (diff)
Fix JSDoc
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/ContactDetails/ContactDetailsProperty.vue28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/components/ContactDetails/ContactDetailsProperty.vue b/src/components/ContactDetails/ContactDetailsProperty.vue
index 5c6d9509..bfafbd06 100644
--- a/src/components/ContactDetails/ContactDetailsProperty.vue
+++ b/src/components/ContactDetails/ContactDetailsProperty.vue
@@ -109,10 +109,20 @@ export default {
return true
},
- // the type of the prop e.g. FN
+ /**
+ * Return the type of the prop e.g. FN
+ *
+ * @returns {String}
+ */
propName() {
return this.property.name
},
+ /**
+ * Return the type or property
+ *
+ * @see src/models/rfcProps
+ * @returns {String}
+ */
propType() {
// if we have a force type set, use it!
if (this.propModel && this.propModel.force) {
@@ -121,7 +131,12 @@ export default {
return this.property.getDefaultType()
},
- // template to use
+ /**
+ * RFC template matching this property
+ *
+ * @see src/models/rfcProps
+ * @returns {Object}
+ */
propModel() {
return this.properties[this.propName]
},
@@ -145,7 +160,13 @@ export default {
return []
},
- // select type handler
+ /**
+ * Returns the closest match to the selected type
+ * or return the default selected as a new object if
+ * none exists
+ *
+ * @returns Object|undefined
+ */
selectType: {
get() {
if (this.propModel && this.propModel.options && this.type) {
@@ -184,7 +205,6 @@ export default {
name: selectedType
}
}
- return false
},
set(data) {
// ical.js take types as arrays