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

fix: don’t render empty parenthesis for calendar slots with playlists

parent 478bdc2c
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ const calendarEvents = computedAsync(async () => {
}
const isEmpty = timeslot.playlistId === null
const emptyText = isEmpty ? t('calendar.empty') : ''
const emptyText = isEmpty ? ` ${t('calendar.empty')}` : ''
const durationMinutes =
(ensureDate(timeslot.end).getTime() - ensureDate(timeslot.start).getTime()) / 1000 / 60
const show = await showStore.retrieve(timeslot.showId, { useCached: true })
......@@ -189,7 +189,7 @@ const calendarEvents = computedAsync(async () => {
const className = ['calendar-event', isOwner ? 'is-mine' : 'is-not-mine']
if (durationMinutes < 0) className.push('is-invalid')
const title = sanitizeHTML(show?.name ?? '') + ` (${emptyText})`
const title = sanitizeHTML(show?.name ?? '') + emptyText
const slot = {
id: timeslot.id,
start: timeslot.start,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment