From b266e9de9b4cb0faad723f0990cc008cde2c9b86 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 4 Aug 2021 21:49:07 +0200 Subject: [PATCH] Fix: Update month input when clicking on preselected ranges --- src/components/monthSelector.vue | 106 ++++++++++++++++++------------- src/store/travail/index.js | 2 +- 2 files changed, 64 insertions(+), 44 deletions(-) diff --git a/src/components/monthSelector.vue b/src/components/monthSelector.vue index ccd3feb..40cd9de 100644 --- a/src/components/monthSelector.vue +++ b/src/components/monthSelector.vue @@ -4,12 +4,12 @@

Période

  • - - + +
  • - - + +
  • @@ -19,7 +19,7 @@ diff --git a/src/store/travail/index.js b/src/store/travail/index.js index 5672197..20a0e15 100644 --- a/src/store/travail/index.js +++ b/src/store/travail/index.js @@ -76,7 +76,7 @@ const travail = { }, getters: { TheEmptyMonth(state) { return { ...state.empty } }, - Range(state) { return state.range }, + range(state) { return state.range }, MonthsDate(state) { // Get months inside the range return Object.keys(state.months).filter(date => (date >= state.range.start) && (date <= state.range.end)).sort().reverse()