summaryrefslogtreecommitdiffstats
path: root/src/components/ContactDetails/ContactDetailsAvatar.vue
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-12-08 10:22:10 +0000
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-08 17:48:12 +0100
commit213a1fc421da26a9d3852721aaf1cd3fbdc7b162 (patch)
tree3c036c4d500cc40c3eb2bbbf89943e15f6a5d24f /src/components/ContactDetails/ContactDetailsAvatar.vue
parent544cc04f1608e8c0555cde50dbccd6e0e964589b (diff)
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Diffstat (limited to 'src/components/ContactDetails/ContactDetailsAvatar.vue')
-rw-r--r--src/components/ContactDetails/ContactDetailsAvatar.vue24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue
index a8762983..8aa0e125 100644
--- a/src/components/ContactDetails/ContactDetailsAvatar.vue
+++ b/src/components/ContactDetails/ContactDetailsAvatar.vue
@@ -98,14 +98,14 @@ export default {
components: {
ActionLink,
- ActionButton
+ ActionButton,
},
props: {
contact: {
type: Object,
- required: true
- }
+ required: true,
+ },
},
data() {
@@ -115,7 +115,7 @@ export default {
loading: false,
root: generateRemoteUrl(`dav/files/${OC.getCurrentUser().uid}`),
width: 0,
- height: 0
+ height: 0,
}
},
computed: {
@@ -124,7 +124,7 @@ export default {
return this.contact.addressbook.readOnly
}
return false
- }
+ },
},
mounted() {
// update image size on window resize
@@ -142,10 +142,10 @@ export default {
if (event.target.files && !this.loading) {
this.closeMenu()
- let file = event.target.files[0]
+ const file = event.target.files[0]
if (file && file.size && file.size <= 1 * 1024 * 1024) {
- let reader = new FileReader()
- let self = this
+ const reader = new FileReader()
+ const self = this
reader.onload = function(e) {
// only getting the raw binary base64
@@ -228,7 +228,7 @@ export default {
'image/gif',
'image/x-xbitmap',
'image/bmp',
- 'image/svg+xml'
+ 'image/svg+xml',
])
.build()
@@ -238,7 +238,7 @@ export default {
try {
const { get } = await axios()
const response = await get(`${this.root}${file}`, {
- responseType: 'arraybuffer'
+ responseType: 'arraybuffer',
})
const type = response.headers['content-type']
const data = Buffer.from(response.data, 'binary').toString('base64')
@@ -317,9 +317,9 @@ export default {
}
}
}
- }
+ },
- }
+ },
}
</script>