Make sure attachements are only added once to the list after uploading
+ Make sure the attachment list shows up every time after adding an attachment
This commit is contained in:
@ -200,7 +200,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Attachments -->
|
||||
<div class="content attachments" v-if="activeFields.attachments">
|
||||
<div class="content attachments" v-if="activeFields.attachments || hasAttachments">
|
||||
<attachments
|
||||
:edit-enabled="canWrite"
|
||||
:task-id="taskId"
|
||||
@ -524,6 +524,9 @@ export default {
|
||||
doneFormatted() {
|
||||
return this.formatDate(this.task.doneAt)
|
||||
},
|
||||
hasAttachments() {
|
||||
return this.$store.state.attachments.attachments.length > 0
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
loadTask() {
|
||||
|
Reference in New Issue
Block a user