added picker, button update and small changes
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
committed by
Julius Härtl
parent
1cd1684936
commit
49e1d8e8ec
@@ -139,7 +139,6 @@ export default new Vuex.Store({
|
||||
|
||||
// label mutators
|
||||
removeLabelFromCurrentBoard(state, labelId) {
|
||||
console.log(labelId)
|
||||
const removeIndex = state.currentBoard.labels.findIndex((l) => {
|
||||
return labelId === l.id
|
||||
})
|
||||
@@ -252,6 +251,7 @@ export default new Vuex.Store({
|
||||
})
|
||||
},
|
||||
addLabelToCurrentBoard({ commit }, newLabel) {
|
||||
newLabel.boardId = this.state.currentBoard.id
|
||||
apiClient.createLabel(newLabel)
|
||||
.then((newLabel) => {
|
||||
commit('addLabelToCurrentBoard', newLabel);
|
||||
|
||||
Reference in New Issue
Block a user