diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2022-06-11 18:06:46 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-06-11 18:06:46 -0400 |
| commit | 131febe653915846ad417ab2aabd6d58cab407e1 (patch) | |
| tree | 1a5d2943f9cdc0ee0c5c6b9c411b1d04a6b932d2 /src/components/attachment | |
| parent | 77e6aa696851f46674fa0266f0ca5849a4a562c1 (diff) | |
Display attachment description updates properly
Diffstat (limited to 'src/components/attachment')
| -rw-r--r-- | src/components/attachment/attachment.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 2a89886d..14f6a0ae 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -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 }" > @@ -257,7 +257,7 @@ @keydown.enter.prevent="" > <p v-else> - {{ localDescription }} + {{ attachment.description }} </p> </div> </div> |
