blob: 278dfa4806c2707d550bd3617d78cc465e922d32 (
plain) (
tree)
|
|
<template>
<div>
<call-sign-filter @sign-changed="filterChanged()"></call-sign-filter>
<div class="table-responsive mt-2">
<table id="ajax-table" class="table table-striped table-bordered" style="white-space:nowrap;"><!-- table-hover -->
<thead class="thead-dark">
<tr>
<th>ID</th>
<th>Approved</th>
<th>Operator Callsign</th>
<th>QSO</th>
<th>From</th>
<th>To</th>
<th>Special Callsign</th>
<th>Frequencies</th>
<th>Modes</th>
<th>Operator Name</th>
<th>Operator Email</th>
<th>Operator Phone</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<reservation-view v-for="(reservation, index) in reservations"
:key="reservation.id" :reservation-index="index">
</reservation-view>
</tbody>
</table>
</div>
</div>
</template>
<script>
import callSignFilter from './call-sign-filter.vue';
import reservationView from './reservation.vue';
export default {
components: { callSignFilter, reservationView },
mounted() {
this.$store.dispatch('fillReservations');
},
computed: {
reservations() {
return this.$store.getters.getData;
}
},
methods: {
filterChanged() {
this.$store.dispatch('fillReservations');
}
}
}
</script>
|