aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2018-04-11 03:37:25 +0000
committerShpuld Shpludson <shp@cock.li>2018-04-11 03:37:25 +0000
commit020d2f83f9fe2290bd74dd118f7e796a415439a4 (patch)
tree6aa7ea8931fa9472025f80dd0e978e48750b168c /src/components/attachment/attachment.js
parentdaa018aecf58599f4c5c0d2f401750e1ebe93cf2 (diff)
parent896fea7dbdedce3aea88b185565b4fdccde405bd (diff)
Merge branch 'feature/rewrite-status-and-notifications-and-preview' into 'develop'
Rewrite status and notifications and preview, graceful handling of linkless attachments See merge request pleroma/pleroma-fe!223
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index cd72e571..163dd74f 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -6,7 +6,8 @@ const Attachment = {
props: [
'attachment',
'nsfw',
- 'statusId'
+ 'statusId',
+ 'size'
],
data () {
return {
@@ -29,6 +30,9 @@ const Attachment = {
},
isEmpty () {
return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown'
+ },
+ isSmall () {
+ return this.size === 'small'
}
},
methods: {