aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components/activities.vue
blob: 1b1057c10bee7299a1a4c8a732e6780bd9bc6d13 (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
<template>
  <div>
    <call-sign-filter :showDescriptions="true" @sign-changed="filterChanged()"></call-sign-filter>

    <div class="table-responsive mt-2">
        <table class="table table-striped table-bordered" style="white-space:nowrap;">
            <thead class="thead-dark">
                <tr>
                  <th>Operator</th>
                  <th>From</th>
                  <th>To</th>
                  <th>Special Callsign</th>
                  <th>Frequencies</th>
                  <th>Modes</th>
                  <th>QSO</th>
                </tr>
            </thead>
            <tbody>
              <tr v-for="(activity, index) in activities" :key="index">
                <td>{{ activity.operatorCall }}</td>
                <td>{{ activity.fromTime }}</td>
                <td>{{ activity.toTime }}</td>
                <td>{{ activity.specialCall }}</td>
                <td>{{ activity.frequencies }}</td>
                <td>{{ activity.modes }}</td>
                <td>{{ activity.qso }}</td>
              </tr>
            </tbody>
        </table>
    </div>
  </div>
</template>

<script>
import callSignFilter from './call-sign-filter.vue';

export default {
  components: { callSignFilter },
  mounted() {
    this.$store.dispatch('pullActivities');
  },
  computed: {
    activities() {
      return this.$store.getters.getData;
    }
  },
  methods: {
    filterChanged() {
      this.$store.dispatch('pullActivities');
    }
  }
}
</script>