From 8c7f4ab481db86306b2cedca9e54d24cf8f0ebe8 Mon Sep 17 00:00:00 2001
From: Sean King <seanking2919@protonmail.com>
Date: Sun, 26 Jun 2022 13:25:36 -0600
Subject: Use watch to change localDescription

---
 src/components/attachment/attachment.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/attachment/attachment.vue')

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 14f6a0ae..2a89886d 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -166,7 +166,7 @@
           :icon="placeholderIconClass"
         />
         <p>
-          {{ edit ? localDescription : attachment.description }}
+          {{ localDescription }}
         </p>
       </a>
 
@@ -244,7 +244,7 @@
       </span>
     </div>
     <div
-      v-if="size !== 'hide' && !hideDescription && (edit || (attachment.description && showDescription))"
+      v-if="size !== 'hide' && !hideDescription && (edit || (localDescription && showDescription))"
       class="description-container"
       :class="{ '-static': !edit }"
     >
@@ -257,7 +257,7 @@
         @keydown.enter.prevent=""
       >
       <p v-else>
-        {{ attachment.description }}
+        {{ localDescription }}
       </p>
     </div>
   </div>
-- 
cgit v1.2.3-70-g09d2

