diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store.js b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store.js
index 99a9da5d8..77a9344c7 100644
--- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store.js
+++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store.js
@@ -29,6 +29,7 @@ const store = createStore({
strict: debug,
state: {
activity: mapEntity(window.entity),
+ events: []
},
mutations: {
@@ -60,6 +61,11 @@ const store = createStore({
state.activity.users = state.activity.users.filter(user => user !== payload);
break;
};
+ },
+ // Calendar
+ onDateSelect(state, payload) {
+ console.log(payload)
+ state.events.push( {start: payload.start, end: payload.end})
}
},
actions: {
@@ -98,6 +104,12 @@ const store = createStore({
break;
};
commit('removePersonInvolved', payload);
+ },
+
+ // Calendar
+ onDateSelect({ commit }, payload) {
+ console.log('### action onDateSelect', payload);
+ commit('onDateSelect', payload);
}
}
});
diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarRange/CalendarRange.vue b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarRange/CalendarRange.vue
index 1085aef0c..1e941f8bd 100644
--- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarRange/CalendarRange.vue
+++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarRange/CalendarRange.vue
@@ -1,4 +1,5 @@
+ {{ $t('choose_your_date') }}