diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-03 12:31:35 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-03 12:31:35 +0200 |
commit | 80cfc893111cf62e15d78ce23edd7673156620e1 (patch) | |
tree | b0c375fd04ffa712c9a38c9925060b7169024bcb /src/components/ContactDetails/ContactDetailsAvatar.vue | |
parent | 84c1d532a633cb9e3f570297ab30fe7ae121edb2 (diff) |
Use isMobile mixin
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/ContactDetails/ContactDetailsAvatar.vue')
-rw-r--r-- | src/components/ContactDetails/ContactDetailsAvatar.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue index 46e04c23..4ee26ac0 100644 --- a/src/components/ContactDetails/ContactDetailsAvatar.vue +++ b/src/components/ContactDetails/ContactDetailsAvatar.vue @@ -239,7 +239,9 @@ export default { }, updateImgSize() { - this.updateHeightWidth(this.$refs.img.naturalHeight, this.$refs.img.naturalWidth) + if (this.contact.photo) { + this.updateHeightWidth(this.$refs.img.naturalHeight, this.$refs.img.naturalWidth) + } }, /** * Updates the current height and width data |