Trigger attachment loading when switching the card sidebar
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user