Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-08-23 13:06:53 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-09-06 15:44:53 +0300
commit5b09a00634aa1012d814c689fbf7a16201e46d2a (patch)
tree28dc2975f7a4003493734aea185a4ad3403d21a3 /src/nodes/ImageView.vue
parent4a73e1365e538d7970ec70550ae55f88a376b3c6 (diff)
use constants for attachment types
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'src/nodes/ImageView.vue')
-rw-r--r--src/nodes/ImageView.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue
index db5409ae5..afacbf5c2 100644
--- a/src/nodes/ImageView.vue
+++ b/src/nodes/ImageView.vue
@@ -167,7 +167,7 @@ export default {
},
computed: {
isMediaAttachment() {
- return this.attachmentType !== 'image'
+ return this.attachmentType === this.$imageResolver.ATTACHMENT_TYPE_MEDIA
},
canDisplayImage() {
if (!this.isSupportedImage) {
@@ -256,8 +256,7 @@ export default {
this.imageLoaded = true
this.loaded = true
this.attachmentType = attachmentType
- console.debug('SUCCESS type', attachmentType)
- if (attachmentType === 'media') {
+ if (attachmentType === this.$imageResolver.ATTACHMENT_TYPE_MEDIA) {
this.loadMediaMetadata(name)
}
resolve(imageUrl)
@@ -270,7 +269,6 @@ export default {
},
loadMediaMetadata(name) {
this.$imageResolver.getMediaMetadata(name).then((response) => {
- console.debug('GOTCHAAAAAA', response.data)
this.attachmentMetadata = response.data
})
},