Allow to use card item without being available in global card store

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-07-11 11:10:47 +02:00
parent 3a4bbac6d4
commit 348fc669be
12 changed files with 160 additions and 52 deletions

View File

@@ -22,10 +22,10 @@
import Vue from 'vue'
import Vuex from 'vuex'
import { CardApi } from '../services/CardApi'
import { DashboardApi } from '../services/DashboardApi'
Vue.use(Vuex)
const apiClient = new CardApi()
const apiClient = new DashboardApi()
export default {
state: {
withDue: [],
@@ -57,7 +57,7 @@ export default {
const assignedCards = await apiClient.findMyAssignedCards()
const assignedCardsFlat = assignedCards.flat()
commit('setAssignedCards', assignedCardsFlat)
},
},
}