Skip to content

Commit

Permalink
Merge pull request #6692 from nextcloud/backport/6681/stable5.0
Browse files Browse the repository at this point in the history
[stable5.0] fix(calendar-list): restrict calendar visibility toggle to checkbox only
  • Loading branch information
st3iny authored Feb 4, 2025
2 parents 2f37eb9 + d94ca1c commit 3623546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
<template>
<AppNavigationItem :loading="calendar.loading"
:name="calendar.displayName || $t('calendar', 'Untitled calendar')"
:menu-open.sync="menuOpen"
@click.prevent.stop="toggleEnabled">
:menu-open.sync="menuOpen">
<template #icon>
<AppNavigationIconBullet v-if="calendar.enabled"
:color="calendar.color"
@click.prevent.stop="toggleEnabled" />
<AppNavigationIconBullet :color="calendar.color" />
</template>

<template #counter>
Expand Down

0 comments on commit 3623546

Please sign in to comment.