Trigger attachment loading when switching the card sidebar

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-05-27 13:29:34 +02:00
parent df8d398284
commit 19edbfe777

View File

@@ -151,8 +151,13 @@ export default {
}
},
},
created() {
this.$store.dispatch('fetchAttachments', this.cardId)
watch: {
cardId: {
immediate: true,
handler() {
this.$store.dispatch('fetchAttachments', this.cardId)
},
},
},
methods: {
handleUploadFile(event) {