diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-05 10:13:16 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-05 10:13:16 +0200 |
commit | a6a3fa0d0617afa45ffd5b428c3b94c5cb55ea90 (patch) | |
tree | e9b5e7352a1f8562ef19c6fa68f6652ee0bf4a07 /src/models | |
parent | 5279b43599ba418b997803b03ef2d788b30d663b (diff) |
Add search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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 |