diff options
author | Mateja <mail@matejamaric.com> | 2021-03-17 12:59:27 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-17 12:59:27 +0100 |
commit | 294146dd14c412e0cd6c715685bcbce0ff92b865 (patch) | |
tree | b6a8425c84df58393807b262168c1bf82ae73fea /resources/js/store.js | |
parent | 4e6fa681c3f8f01a44a3446f80524842a4f42274 (diff) | |
download | yota-laravel-294146dd14c412e0cd6c715685bcbce0ff92b865.tar.gz yota-laravel-294146dd14c412e0cd6c715685bcbce0ff92b865.zip |
Started work on reservation components.
Diffstat (limited to 'resources/js/store.js')
-rw-r--r-- | resources/js/store.js | 7 |
1 files changed, 7 insertions, 0 deletions
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); + }); } } }); |