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

fix: ensure show name html is displayed everywhere

refs #343
parent 7ba5d42b
No related branches found
No related tags found
No related merge requests found
Pipeline #8836 passed
Pipeline: aura-tests

#8837

    ...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
    <template v-if="event.extendedProps.durationMinutes > slotDurationMinutes"> <template v-if="event.extendedProps.durationMinutes > slotDurationMinutes">
    <div class="fc-event-time">{{ timeText }}</div> <div class="fc-event-time">{{ timeText }}</div>
    <div class="fc-event-title-container"> <div class="fc-event-title-container">
    <div class="fc-event-title fc-sticky">{{ event.title }}</div> <div class="fc-event-title fc-sticky" v-html="event.title" />
    </div> </div>
    </template> </template>
    </div> </div>
    ...@@ -210,7 +210,7 @@ const calendarEvents = computedAsync( ...@@ -210,7 +210,7 @@ const calendarEvents = computedAsync(
    className.push('is-fallback') className.push('is-fallback')
    else className.push('is-normal') else className.push('is-normal')
    const title = sanitizeHTML(show?.name ?? '') + emptyText const title = sanitizeHTML(show?.name ?? '', 'inline-noninteractive') + emptyText
    const slot = { const slot = {
    id: entry.id, id: entry.id,
    start: entry.start, start: entry.start,
    ......
    <template> <template>
    <ADialog <ADialog ref="dialog" class="md:tw-w-[600px]" is-modal>
    ref="dialog" <template #header="{ titleClass }">
    :title=" <p
    t('scheduleEditor.titleCreate', { show: sanitizeHTML(show?.name ?? t('show.singular')) }) :class="titleClass"
    " v-html="
    class="md:tw-w-[600px]" t('scheduleEditor.titleCreate', {
    is-modal show: sanitizeHTML(show?.name ?? t('show.singular'), 'inline-noninteractive'),
    > })
    "
    />
    </template>
    <AAlert v-if="nowDate > firstDate" is-warning class="tw-mb-6"> <AAlert v-if="nowDate > firstDate" is-warning class="tw-mb-6">
    {{ t('scheduleEditor.pastEventWarning') }} {{ t('scheduleEditor.pastEventWarning') }}
    </AAlert> </AAlert>
    ......
    ...@@ -12,7 +12,11 @@ ...@@ -12,7 +12,11 @@
    :to="{ name: 'show', params: { showId: show.id } }" :to="{ name: 'show', params: { showId: show.id } }"
    class="tw-text-inherit tw-block tw-no-underline tw-group" class="tw-text-inherit tw-block tw-no-underline tw-group"
    > >
    <SafeHTML :html="show.name" class="tw-block tw-font-semibold group-hover:tw-underline" /> <SafeHTML
    :html="show.name"
    class="tw-block tw-font-semibold group-hover:tw-underline"
    sanitize-preset="inline-noninteractive"
    />
    <SafeHTML :html="show.shortDescription" class="tw-text-sm" /> <SafeHTML :html="show.shortDescription" class="tw-text-sm" />
    <div v-if="radioSettings?.program.fallback.showId === show.id" class="tw-mt-1"> <div v-if="radioSettings?.program.fallback.showId === show.id" class="tw-mt-1">
    <APill <APill
    ......
    ...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
    <template #default="{ choice, index, activeIndex, ...attrs }"> <template #default="{ choice, index, activeIndex, ...attrs }">
    <li v-bind="attrs"> <li v-bind="attrs">
    <p class="tw-m-0 tw-font-bold tw-flex tw-items-baseline tw-justify-between"> <p class="tw-m-0 tw-font-bold tw-flex tw-items-baseline tw-justify-between">
    <SafeHTML :html="(choice as Show).name" sanitize-preset="strip" /> <SafeHTML :html="(choice as Show).name" sanitize-preset="inline-noninteractive" />
    <span class="tw-text-xs tw-opacity-75 tw-flex-none tw-font-normal"> <span class="tw-text-xs tw-opacity-75 tw-flex-none tw-font-normal">
    ID: {{ (choice as Show).id }} ID: {{ (choice as Show).id }}
    </span> </span>
    ...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
    class="tw-absolute tw-left-0 tw-top-0 tw-pointer-events-none tw-truncate form-control !tw-border-none !tw-bg-transparent" class="tw-absolute tw-left-0 tw-top-0 tw-pointer-events-none tw-truncate form-control !tw-border-none !tw-bg-transparent"
    style="max-width: calc(100% - 5.5rem)" style="max-width: calc(100% - 5.5rem)"
    > >
    <SafeHTML :html="selectedShow.name" sanitize-preset="strip" /> <SafeHTML :html="selectedShow.name" sanitize-preset="inline-noninteractive" />
    </span> </span>
    </template> </template>
    </ComboBoxSimple> </ComboBoxSimple>
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment