Option for showing active/inactive accounts.

This commit is contained in:
James Cole
2021-03-27 15:06:40 +01:00
parent 381b09d68b
commit b7ba6f81da
7 changed files with 131 additions and 40 deletions

View File

@@ -21,7 +21,8 @@
// initial state
const state = () => (
{
orderMode: false
orderMode: false,
activeFilter: 1
}
)
@@ -31,6 +32,9 @@ const getters = {
orderMode: state => {
return state.orderMode;
},
activeFilter: state => {
return state.activeFilter;
}
}
// actions
@@ -41,6 +45,9 @@ const mutations = {
setOrderMode(state, payload) {
state.orderMode = payload;
},
setActiveFilter(state, payload) {
state.activeFilter = payload;
}
}
export default {