Commit ea4c4422 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FIX: make user aware of single emission schedule with split timeslots (#29)

parent 858f074a
......@@ -25,7 +25,26 @@
<div v-if="loaded.schedule">
<div v-if="schedule.rrule === 1">
<p>This is a single emission. No other timeslots in this schedule.</p>
This is a single emission.
<span v-if="!loaded.scheduleTimeslots"><br>... checking for timeslots ...</span>
<span v-else>
<span v-if="scheduleTimeslots.length > 1">
But due to a previous conflict resolution there is a second timeslot, from
<b-badge variant="info">
<span v-if="timeslot.start === scheduleTimeslots[0].start">{{ prettyDateTime(scheduleTimeslots[1].start) }}</span>
<span v-else>{{ prettyDateTime(scheduleTimeslots[0].start) }}</span>
<b-badge variant="info">
<span v-if="timeslot.start === scheduleTimeslots[0].start">{{ prettyDateTime(scheduleTimeslots[1].end) }}</span>
<span v-else>{{ prettyDateTime(scheduleTimeslots[0].end) }}</span>
<span v-else>No other timeslots in this schedule.</span>
<div v-else>
<p>This is a recurring event: <b>{{ rruleRender(schedule.rrule) }}</b>, until: {{ prettyDate(schedule.until) }}</p>
......@@ -47,7 +66,7 @@
<p>What do you want to do with it?</p>
<p>What do you want to do?</p>
<div align="center">
......@@ -55,7 +74,8 @@
<span v-if="schedule.rrule === 1">Delete</span>
<span v-if="schedule.rrule === 1 && scheduleTimeslots.length === 1">Delete</span>
<span v-else-if="schedule.rrule === 1">Delete both</span>
<span v-else>Delete schedule + all timeslots</span>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment