summaryrefslogtreecommitdiffstats
path: root/src/components/ContactDetails/ContactDetailsAvatar.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-04-03 12:31:35 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-04-03 12:31:35 +0200
commit80cfc893111cf62e15d78ce23edd7673156620e1 (patch)
treeb0c375fd04ffa712c9a38c9925060b7169024bcb /src/components/ContactDetails/ContactDetailsAvatar.vue
parent84c1d532a633cb9e3f570297ab30fe7ae121edb2 (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.vue4
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