Skip to content

Commit

Permalink
fix: resolve html rendering issue for holidays in roster view (#2595)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1df50af)
  • Loading branch information
UmakanthKaspa authored and mergify[bot] committed Jan 8, 2025
1 parent c068633 commit 43341d5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions roster/src/components/MonthViewTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@
v-if="events.data?.[employee.name]?.[day.date]?.holiday"
class="blocked-cell"
>
{{
events.data[employee.name][day.date].weekly_off
? "WO"
: events.data[employee.name][day.date].description
}}
<div
v-html="
events.data[employee.name][day.date].weekly_off
? '<strong>WO</strong>'
: events.data[employee.name][day.date].description
"
></div>
</div>

<!-- Leave -->
Expand Down

0 comments on commit 43341d5

Please sign in to comment.