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

fix(Calendar): only display playlist warning for scheduled program entries

refs #128
parent e75ae270
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ const calendarEvents = computedAsync(
continue
}
const isEmpty = entry.playlistId === null
const isEmpty = entry.timeslotId && entry.playlistId === null
const emptyText = isEmpty ? `: ${t('calendar.empty')} ⚠` : ''
const ts = entry.timeslotId
? await timeslotStore.retrieve(entry.timeslotId, { useCached: true })
......
......@@ -80,6 +80,7 @@
<APill v-if="timeslot?.repetitionOfId" class="tw-text-teal-700 tw-text-sm">
{{ t('calendar.repetition') }}
</APill>
<APill
v-if="
playlistDurationInSeconds !== null &&
......@@ -89,14 +90,11 @@
>
{{ t('calendar.mismatchedLength') }}
</APill>
<APill v-if="timeslot && !timeslot.playlistId" class="tw-text-amber-700 tw-text-sm">
{{ t('calendar.fallback') }}
</APill>
</template>
<APill v-else-if="!entry.playlistId" class="tw-text-rose-700 tw-text-sm">
{{ t('calendar.empty') }}
</APill>
</div>
</ATimelineContent>
</ATimelineItem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment