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.

39 lines
807 B

2 years ago
  1. export function state() {
  2. return {
  3. drawer: false,
  4. dates: [],
  5. selected: [],
  6. categoryChecked: [],
  7. subcategoryChecked: [],
  8. isCookieHasBeenClicked: true,
  9. };
  10. }
  11. export const mutations = {
  12. openDrawer(state) {
  13. state.drawer = true;
  14. },
  15. closeDrawer(state) {
  16. state.drawer = false;
  17. },
  18. closeCookie(state) {
  19. state.isCookieHasBeenClicked = false;
  20. },
  21. setDates(state, payload) {
  22. state.dates = payload;
  23. },
  24. setSelected(state, payload) {
  25. state.selected = payload;
  26. },
  27. setCategoryChecked(state, payload) {
  28. state.categoryChecked = payload;
  29. },
  30. setSubcategoryChecked(state, payload) {
  31. state.subcategoryChecked = payload;
  32. }
  33. };
  34. // export const actions = {
  35. // setDates(context, payload) {
  36. // context.commit('updateDates', payload);
  37. // }
  38. // };