Skip to content

Commit d7e1f36

Browse files
committed
feat(statutory): add export filter for cancelled participants
1 parent 3bc775b commit d7e1f36

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/views/statutory/Export.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@
3434
</div>
3535
</div>
3636

37+
<div class="field is-fullwidth" v-if="this.can.export.all">
38+
<label class="label">Filter on cancellation</label>
39+
<div class="select">
40+
<select v-model="filter.cancelled">
41+
<option :value="null">Everybody</option>
42+
<option :value="true">Cancelled participants</option>
43+
<option :value="false">Not cancelled participants</option>
44+
</select>
45+
</div>
46+
</div>
47+
3748
<div class="field is-fullwidth" v-if="this.can.export.all">
3849
<label class="label">Filter on confirmation</label>
3950
<div class="select">
@@ -95,6 +106,7 @@ export default {
95106
},
96107
filter: {
97108
status: null,
109+
cancelled: null,
98110
confirmed: null,
99111
participant_type: null
100112
},
@@ -156,6 +168,7 @@ export default {
156168
const filter = {}
157169
158170
if (this.filter.status !== null) filter.status = this.filter.status
171+
if (this.filter.cancelled !== null) filter.cancelled = this.filter.cancelled
159172
if (this.filter.confirmed !== null) filter.confirmed = this.filter.confirmed
160173
if (this.filter.participant_type !== null) filter.participant_type = this.filter.participant_type
161174

0 commit comments

Comments
 (0)