Add API to register card actions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-02-02 19:05:40 +01:00
parent 4718a1bb2d
commit 52b21e271a
5 changed files with 103 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ export default {
stacksByBoard: state => (id) => {
return state.stacks.filter((stack) => stack.boardId === id).sort((a, b) => a.order - b.order)
},
stackById: state => (id) => {
return state.stacks.find((stack) => stack.id === id)
},
},
mutations: {
addStack(state, stack) {