diff options
Diffstat (limited to 'src/models')
-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 4edaff42..104f11ff 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -324,6 +324,17 @@ export default class Contact { } /** + * Return an array of formatted properties for the search + * + * @readonly + * @memberof Contact + * @returns {String[]} + */ + get searchData() { + return this.jCal[1].map(x => x[0] + ':' + x[3]) + } + + /** * Add the contact to the group * * @param {string} group the group to add the contact to |