summaryrefslogtreecommitdiffstats
path: root/src/components/Properties
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-25 12:07:19 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-25 14:53:28 +0200
commit040992884b416d5c86e3a06731f26a5b1c68d7a8 (patch)
treecbb88805176c6e7ed040ab87b8797f5e47edd61a /src/components/Properties
parent6e4c413aef45f681805a587938096c45e049eae2 (diff)
JSDoc fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/Properties')
-rw-r--r--src/components/Properties/PropertyDateTime.vue8
-rw-r--r--src/components/Properties/PropertyGroups.vue2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue
index 264417da..bc903273 100644
--- a/src/components/Properties/PropertyDateTime.vue
+++ b/src/components/Properties/PropertyDateTime.vue
@@ -63,6 +63,11 @@ import propertyTitle from './PropertyTitle'
* Using the Object as hared data since it's the only way
* for us to forcefully omit some data (no year, or no time... etc)
* and ths only common syntax between js Date, moment and VCardTime
+ *
+ * @param {Object} vcardTime ICAL.VCardTime data
+ * @param {string} type the input type e.g. date-time
+ * @param {string} locale the user locale
+ * @returns {string}
*/
let formatDateTime = function(vcardTime, type, locale) {
// this is the only possibility for us to ensure
@@ -111,6 +116,8 @@ let formatDateTime = function(vcardTime, type, locale) {
* inside a function declaration will represent the
* location of the call. So this = DatetimePicker.
* Therefore we can use any props we pass through datetime-picker
+ *
+ * @returns {string}
*/
DatetimePicker.methods.stringify = function() {
return formatDateTime(this.$parent.localValue, this.type, this.$parent.locale)
@@ -154,6 +161,7 @@ export default {
default: true
}
},
+
data() {
return {
localValue: this.value,
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue
index be871175..2ab97b93 100644
--- a/src/components/Properties/PropertyGroups.vue
+++ b/src/components/Properties/PropertyGroups.vue
@@ -85,6 +85,8 @@ export default {
/**
* Format array of groups objects to a string for the popup
* Based on the ultiselect limit
+ *
+ * @returns {string} the additional groups
*/
formatGroupsTitle() {
return this.localValue.slice(3).join(', ')