diff options
author | suntala <33031346+suntala@users.noreply.github.com> | 2018-09-28 17:43:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 17:43:13 +0200 |
commit | 4169161824c741093e85455c57314ee475088ffd (patch) | |
tree | 856fd25496ed438197a78573c1aa01791b11cd6c /src/models | |
parent | a12216df96f6704e42659c33ddae7b5a8af9fdbd (diff) | |
parent | fb27b490e16990b244a8b79fa9b1a7ac60b1ea85 (diff) |
Merge pull request #647 from nextcloud/vue-avatar-management
Vue avatar management
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/contact.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index 52d713fc..b0eec0a5 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -123,6 +123,27 @@ export default class Contact { } /** + * Return the photo + * + * @readonly + * @memberof Contact + */ + get photo() { + return this.vCard.getFirstPropertyValue('photo') + } + + /** + * Set the photo + * + * @param {string} photo the photo to set + * @memberof Contact + */ + set photo(photo) { + this.vCard.updatePropertyWithValue('photo', photo) + return true + } + + /** * Return the groups * * @readonly |