serach cards

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-01-30 11:54:53 +01:00
parent b0e3520969
commit 032573bd69
3 changed files with 26 additions and 2 deletions

View File

@@ -61,8 +61,12 @@ export default new Vuex.Store({
boardFilter: BOARD_FILTERS.ALL,
activity: [],
activityLoadMore: true,
searchQuery: '',
},
getters: {
getSearchQuery: state => {
return state.searchQuery
},
boards: state => {
return state.boards
},
@@ -107,6 +111,9 @@ export default new Vuex.Store({
},
},
mutations: {
setSearchQuery(state, searchQuery) {
state.searchQuery = searchQuery
},
toggleShowArchived(state) {
state.showArchived = !state.showArchived
},