post editing #57
2 changed files with 6 additions and 3 deletions
|
@ -132,6 +132,9 @@ const Attachment = {
|
|||
...mapGetters(['mergedConfig'])
|
||||
},
|
||||
watch: {
|
||||
'attachment.description' (newVal) {
|
||||
this.localDescription = newVal
|
||||
},
|
||||
localDescription (newVal) {
|
||||
this.onEdit(newVal)
|
||||
}
|
||||
|
|
|
@ -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 }"
|
||||
>
|
||||
|
@ -259,7 +259,7 @@
|
|||
@input="resize"
|
||||
/>
|
||||
<p v-else>
|
||||
{{ attachment.description }}
|
||||
{{ localDescription }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue