Skip to content

Commit

Permalink
fix(calendar-list): restrict calendar visibility toggle to checkbox only
Browse files Browse the repository at this point in the history
Previously, clicking anywhere on the calendar name would toggle its visibility,
leading to accidental hiding of calendars. Now the visibility can only be
toggled by clicking the checkbox/bullet icon.

Fixes #3027

Signed-off-by: Antonia Schwennesen <53372671+zophiana@users.noreply.github.com>
  • Loading branch information
zophiana authored and backportbot[bot] committed Feb 3, 2025
1 parent c347345 commit 02d328d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
:aria-description="descriptionAppNavigationItem"
:name="calendarDisplayName || $t('calendar', 'Untitled calendar')"
:class="{deleted: isBeingDeleted, disabled: !calendar.enabled}"
@click.prevent.stop="toggleEnabled"
@update:menuOpen="actionsMenuOpen = $event">
<template #icon>
<CheckboxMarked v-if="calendar.enabled"
:size="20"
:fill-color="calendar.color" />
:fill-color="calendar.color"
@click.prevent.stop="toggleEnabled" />
<CheckboxBlank v-else
:size="20"
:fill-color="calendar.color" />
:fill-color="calendar.color"
@click.prevent.stop="toggleEnabled" />
</template>

<template #counter>
Expand Down

0 comments on commit 02d328d

Please # to comment.