summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-25 16:06:26 +0200
committerJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-25 16:06:26 +0200
commiteaf1453e8f6e2a03254e68ead2a7a2674ddd6543 (patch)
tree1761499109f66abd7fc727709f5119b1c8070b0f /src
parent2946343f8be2d3c4da18cd2684329b4b7f3f893e (diff)
added notes from pair programming
Diffstat (limited to 'src')
-rw-r--r--src/components/ContactDetails/ContactDetailsAvatar.vue16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue
index 0a09fad6..7e69d434 100644
--- a/src/components/ContactDetails/ContactDetailsAvatar.vue
+++ b/src/components/ContactDetails/ContactDetailsAvatar.vue
@@ -59,30 +59,26 @@ export default {
let file = event.target.files[0]
let reader = new FileReader()
let self = this
+ // need if contact.photo to check if already there, if it is use updatePropertyWithValue
reader.onload = function(e) {
self.contact.vCard.addPropertyWithValue('photo', reader.result)
self.$store.dispatch('updateContact', self.contact)
}
reader.readAsDataURL(file)
},
- maximise() {
+ toggleSize() {
// maximise avatar photo
- this.maximizeAvatar = true
- },
- uploadPhoto() {
- // upload avatar photo
- console.log("upload") // eslint-disable-line
+ this.maximizeAvatar != this.maximizeAvatar
},
removePhoto() {
+ // self.contact.vCard.removePropertyWithValue('photo', reader.result)
// remove avatar photo
console.log("remove") // eslint-disable-line
},
- minimizePhoto() {
- // minimize avatar photo
- this.maximizeAvatar = false
- },
downloadPhoto() {
// download avatar photo
+ // same as opening in new tab, use contact.url?photo to create download link
+ // look at download addressbook
console.log("download") // eslint-disable-line
}
}