diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index 14cbbe2af..44211d1c9 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -53,13 +53,14 @@
- + (line) => { + + let newCard = { + title: line, + stackId: this.stack.id, + boardId: this.stack.boardId, + } + + this.$store.dispatch('addCard', newCard) + this.newCardTitle = '' + this.showAddCard = false + }) + + } else { + + const newCard = { + title: this.newCardTitle, + stackId: this.stack.id, + boardId: this.stack.boardId, + } + + this.$store.dispatch('addCard', newCard) + this.newCardTitle = '' + this.showAddCard = false + } - this.$store.dispatch('addCard', newCard) - this.newCardTitle = '' - this.showAddCard = false }, }, }