Skip to content
Snippets Groups Projects
Commit 8472d2a0 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: show date of schedule for schedules that start and end on the same day

Schedules that only run for a single day should display when that day
is.

refs #121
parent 9333215c
No related branches found
No related tags found
No related merge requests found
Pipeline #3057 passed
......@@ -29,6 +29,10 @@
{{ renderRruleForSchedule(schedule) }}
</td>
<td class="text-right">
<template v-if="schedule.first_date === schedule.last_date">
{{ prettyDate(parseISO(schedule.first_date)) }} <br />
</template>
{{ prettyHours(schedule.start_time) }} - {{ prettyHours(schedule.end_time) }}
</td>
</tr>
......@@ -46,6 +50,7 @@
</template>
<script>
import { parseISO } from 'date-fns'
import { mapGetters } from 'vuex'
import rrules from '../../mixins/rrules'
import prettyDate from '../../mixins/prettyDate'
......@@ -75,6 +80,7 @@ export default {
},
methods: {
parseISO,
uppercaseFirst,
expand() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment