From cc323d95fa3cad2d3ba437c37c4f29f8dff854eb Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 14 Mar 2021 18:22:56 +0100 Subject: Finished call-sign-description component. --- resources/js/app.js | 4 +- resources/js/components/call-sign-description.vue | 45 ++++++++++++++++++++++- resources/js/store.js | 4 +- resources/views/pages/reserve.blade.php | 36 ++++++++++-------- 4 files changed, 68 insertions(+), 21 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index efea4b1..35fd04a 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -5,7 +5,7 @@ import Vue from 'vue'; import store from './store.js'; import callSignFilter from './components/call-sign-filter.vue'; -import callSignDesc from './components/call-sign-description.vue'; +import callSignDescription from './components/call-sign-description.vue'; import activities from './components/activities.vue'; import reservation from './components/reservation.vue'; @@ -15,7 +15,7 @@ new Vue({ el: '#vue', store, components: { - callSignDesc, + callSignDescription, callSignFilter, activities, reservation, diff --git a/resources/js/components/call-sign-description.vue b/resources/js/components/call-sign-description.vue index 48e54f5..b0dca4d 100644 --- a/resources/js/components/call-sign-description.vue +++ b/resources/js/components/call-sign-description.vue @@ -1,9 +1,50 @@ diff --git a/resources/js/store.js b/resources/js/store.js index 6ec3711..669f0bc 100644 --- a/resources/js/store.js +++ b/resources/js/store.js @@ -28,8 +28,8 @@ export default new Vuex.Store({ setSelectedSign(context, sign) { context.commit('setSelectedSign', sign); }, - fillSigns(context) { - axios.get('/special-calls/show').then(response => { + async fillSigns(context) { + await axios.get('/special-calls/show').then(response => { context.commit('fillSigns', response.data); }).catch(error => { console.log(error); diff --git a/resources/views/pages/reserve.blade.php b/resources/views/pages/reserve.blade.php index 823e8b9..d0253df 100644 --- a/resources/views/pages/reserve.blade.php +++ b/resources/views/pages/reserve.blade.php @@ -17,24 +17,30 @@ @endif
@csrf - -
- - + + @error('scall')
{{ $message }}
@enderror -
-
-
-
-
-
+ {{----}} +{{--
--}} + {{----}} + {{-- --}} + {{--@error('scall')--}} + {{--
{{ $message }}
--}} + {{--@enderror--}} +{{--
--}} + +{{--
--}} + {{--
--}} + {{--
--}} + {{--
--}} +{{--
--}} @error('time')
{{ $message }}
@@ -163,5 +169,5 @@ format: 'H:i' }); - + {{----}} @endsection -- cgit v1.2.3