You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
807 B
40 lines
807 B
export function state() {
|
|
return {
|
|
drawer: false,
|
|
dates: [],
|
|
selected: [],
|
|
categoryChecked: [],
|
|
subcategoryChecked: [],
|
|
isCookieHasBeenClicked: true,
|
|
};
|
|
}
|
|
|
|
export const mutations = {
|
|
openDrawer(state) {
|
|
state.drawer = true;
|
|
},
|
|
closeDrawer(state) {
|
|
state.drawer = false;
|
|
},
|
|
closeCookie(state) {
|
|
state.isCookieHasBeenClicked = false;
|
|
},
|
|
setDates(state, payload) {
|
|
state.dates = payload;
|
|
},
|
|
setSelected(state, payload) {
|
|
state.selected = payload;
|
|
},
|
|
setCategoryChecked(state, payload) {
|
|
state.categoryChecked = payload;
|
|
},
|
|
setSubcategoryChecked(state, payload) {
|
|
state.subcategoryChecked = payload;
|
|
}
|
|
};
|
|
|
|
// export const actions = {
|
|
// setDates(context, payload) {
|
|
// context.commit('updateDates', payload);
|
|
// }
|
|
// };
|