Fix fetching attachments on card change

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-06-22 20:31:24 +02:00
parent e65f0989e1
commit 8f77aa005d
3 changed files with 6 additions and 10 deletions

View File

@@ -114,6 +114,11 @@ export default {
return this.card.id
},
},
watch: {
card(newCard) {
this.$store.dispatch('fetchAttachments', newCard.id)
},
},
created: function() {
this.$store.dispatch('fetchAttachments', this.card.id)
},