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:
kolaente 2021-01-18 21:58:34 +01:00
parent a0664ecb29
commit 0b23e91f8d
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 19 additions and 33 deletions

View file

@ -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() {