added picker, button update and small changes

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2019-04-24 12:28:10 +02:00
committed by Julius Härtl
parent 1cd1684936
commit 49e1d8e8ec
3 changed files with 32 additions and 16 deletions

View File

@@ -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);