From 294146dd14c412e0cd6c715685bcbce0ff92b865 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 17 Mar 2021 12:59:27 +0100 Subject: Started work on reservation components. --- resources/js/components/reservation.vue | 29 +++++++++++++++++-- resources/js/components/reservations.vue | 49 ++++++++++++++++++++++++++++++-- resources/js/store.js | 7 +++++ 3 files changed, 81 insertions(+), 4 deletions(-) (limited to 'resources') diff --git a/resources/js/components/reservation.vue b/resources/js/components/reservation.vue index 48e54f5..1e04c89 100644 --- a/resources/js/components/reservation.vue +++ b/resources/js/components/reservation.vue @@ -1,9 +1,34 @@ diff --git a/resources/js/components/reservations.vue b/resources/js/components/reservations.vue index 48e54f5..278dfa4 100644 --- a/resources/js/components/reservations.vue +++ b/resources/js/components/reservations.vue @@ -1,9 +1,54 @@ diff --git a/resources/js/store.js b/resources/js/store.js index 852ba6b..4ca0dc3 100644 --- a/resources/js/store.js +++ b/resources/js/store.js @@ -47,6 +47,13 @@ export default new Vuex.Store({ }).catch(error => { console.log(error); }); + }, + async fillReservations(context) { + await axios.post('/special-calls/reservations', {'call-sign': this.state.selectedSign}).then(response => { + context.commit('setData', response.data.data); + }).catch(error => { + console.log(error); + }); } } }); -- cgit v1.2.3