mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Option for showing active/inactive accounts.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user