blob: 0c420b8a4701f2b608a017ca3eefc26fc0ff4359 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<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('pullReservations');
},
computed: {
reservations() {
return this.$store.getters.getData;
}
},
methods: {
filterChanged() {
this.$store.dispatch('pullReservations');
}
}
}
</script>
<style scoped>
@media only screen and (min-width:961px) {
.table-responsive {
max-height: 80vh;
}
}
</style>
|