Commit 065efcab authored by Angelina Filippova's avatar Angelina Filippova

Enable active and local filters on users tab by default

parent ca3745e2
......@@ -21,7 +21,7 @@
export default {
data() {
return {
value: []
value: ['local', 'active']
}
},
computed: {
......@@ -29,6 +29,10 @@ export default {
return this.$store.state.app.device === 'desktop'
}
},
created() {
const currentFilters = this.$data.value.reduce((acc, filter) => ({ ...acc, [filter]: true }), {})
this.$store.dispatch('ToggleUsersFilter', currentFilters)
},
methods: {
removeOppositeFilters() {
const filtersQuantity = Object.keys(this.$store.state.users.filters).length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment