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,9 +151,14 @@ export default {
} }
}, },
}, },
created() { watch: {
cardId: {
immediate: true,
handler() {
this.$store.dispatch('fetchAttachments', this.cardId) this.$store.dispatch('fetchAttachments', this.cardId)
}, },
},
},
methods: { methods: {
handleUploadFile(event) { handleUploadFile(event) {
const files = event.target.files ?? [] const files = event.target.files ?? []