Cleanup frontend code

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-08-20 11:47:35 +02:00
parent b199442b16
commit 06078c85ee
7 changed files with 7 additions and 31 deletions

View File

@@ -96,9 +96,6 @@ export default {
},
},
mutations: {
clearCards(state) {
state.cards = []
},
addCard(state, card) {
card.labels = card.labels || []
card.assignedUsers = card.assignedUsers || []

View File

@@ -32,12 +32,6 @@ export default {
assignedCards: [],
},
getters: {
dueOverdue: state => {
return state.withDue.filter((card) => {
return card
})
},
withDueDashboard: state => {
return state.withDue
},
@@ -52,7 +46,6 @@ export default {
setAssignedCards(state, assignedCards) {
state.assignedCards = assignedCards
},
},
actions: {
async loadDueDashboard({ commit }) {

View File

@@ -76,7 +76,6 @@ export default {
})
},
async loadStacks({ commit }, boardId) {
commit('clearCards')
let call = 'loadStacks'
if (this.state.showArchived === true) {
call = 'loadArchivedStacks'