Display attachment description updates properly

This commit is contained in:
Tusooa Zhu 2022-06-11 18:06:46 -04:00 committed by Sol Fisher Romanoff
parent 0b8005001a
commit e6c1bd3d72
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -166,7 +166,7 @@
:icon="placeholderIconClass"
/>
<p>
{{ localDescription }}
{{ edit ? localDescription : attachment.description }}
</p>
</a>
@ -244,7 +244,7 @@
</span>
</div>
<div
v-if="size !== 'hide' && !hideDescription && (edit || (localDescription && showDescription))"
v-if="size !== 'hide' && !hideDescription && (edit || (attachment.description && showDescription))"
class="description-container"
:class="{ '-static': !edit }"
>
@ -259,7 +259,7 @@
@input="resize"
/>
<p v-else>
{{ localDescription }}
{{ attachment.description }}
</p>
</div>
</div>