Skip to content

Commit 645ccf1

Browse files
committed
(store): add countType to the state
1 parent 88b7a09 commit 645ccf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

store/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const state = () => ({
1111
period: 'last_30_days',
1212
chartPeriod: 'last_year',
1313
show: 'all',
14+
countType: 'all',
1415
orgSearchTerm: '',
1516
userSearchTerm: '',
1617
})
@@ -23,6 +24,7 @@ export const getters = {
2324
getPeriod: (state) => state.period,
2425
getChartPeriod: (state) => state.chartPeriod,
2526
getShow: (state) => state.show,
27+
getCountType: (state) => state.countType,
2628
getOrgSearchTerm: (state) => state.orgSearchTerm,
2729
getUserSearchTerm: (state) => state.userSearchTerm,
2830
}
@@ -64,6 +66,9 @@ export const mutations = {
6466
setShow(state, show) {
6567
state.show = show
6668
},
69+
setCountType(state, countType) {
70+
state.countType = countType
71+
},
6772
setOrgSearchTerm(state, searchTerm) {
6873
state.orgSearchTerm = searchTerm
6974
},

0 commit comments

Comments
 (0)