diff options
| author | shpuld <shp@cock.li> | 2018-04-09 19:43:31 +0300 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2018-04-09 19:43:31 +0300 |
| commit | f4f9b3fa265df95ade97625cf2f870ded0825eb1 (patch) | |
| tree | bc90340face910ee2c72ebcd9ee8911d62ac9ee3 /src/components/attachment/attachment.js | |
| parent | 936ca1a38cc1b9206dea8970eda6885fc7d4391d (diff) | |
small fixes
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 6 |
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: { |
