Compare commits

...

2 Commits

Author SHA1 Message Date
Luka Trovic
cc73357fa9 fix: feedback
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-04-20 14:24:34 +00:00
Luka Trovic
1ebb21dfeb fix: show card after moving into another list
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-04-20 14:24:34 +00:00
2 changed files with 7 additions and 1 deletions

View File

@@ -167,10 +167,13 @@ export default {
},
})
},
moveCard() {
async moveCard() {
this.copiedCard = Object.assign({}, this.card)
this.copiedCard.stackId = this.selectedStack.id
this.$store.dispatch('moveCard', this.copiedCard)
if (parseInt(this.boardId) === parseInt(this.selectedStack.boardId)) {
await this.$store.commit('addNewCard', { ...this.copiedCard })
}
this.modalShow = false
},
async loadStacksFromBoard(board) {

View File

@@ -264,6 +264,9 @@ export default {
Vue.set(state.cards[existingIndex], 'attachmentCount', state.cards[existingIndex].attachmentCount - 1)
}
},
addNewCard(state, card) {
state.cards.push(card)
},
},
actions: {
async addCard({ commit }, card) {