summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsuntala <suntala@hotmail.com>2018-09-27 22:41:28 +0200
committersuntala <suntala@hotmail.com>2018-09-27 22:41:28 +0200
commit39a872acbaf30f66eb8aadb5114649d0231f4d99 (patch)
tree6347bd63d3d7088762a84f1f6a90b529cd4edd5a /src
parent9b85192e9a60879528f8b4b25e10e882374c3f18 (diff)
Add removePhoto method. #603
Diffstat (limited to 'src')
-rw-r--r--src/components/ContactDetails/ContactDetailsAvatar.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue
index f160c848..63cfb8ed 100644
--- a/src/components/ContactDetails/ContactDetailsAvatar.vue
+++ b/src/components/ContactDetails/ContactDetailsAvatar.vue
@@ -75,9 +75,9 @@ export default {
this.maximizeAvatar = !this.maximizeAvatar
},
removePhoto() {
- // self.contact.vCard.removePropertyWithValue('photo', reader.result)
- // remove avatar photo
- console.log("remove") // eslint-disable-line
+ this.contact.vCard.removeProperty('photo')
+ this.maximizeAvatar = !this.maximizeAvatar
+ this.$store.dispatch('updateContact', this.contact)
}
}