Skip to content

Commit

Permalink
fix(public-calendar): remove toggle functionality from public view
Browse files Browse the repository at this point in the history
The enabled state cannot be persisted in public views, so the toggle
functionality should not be available. Remove click handler from bullet
icon to prevent misleading interaction.

Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: Antonia Schwennesen <53372671+zophiana@users.noreply.github.com>
  • Loading branch information
2 people authored and backportbot[bot] committed Feb 3, 2025
1 parent 02d328d commit 180d7fc
Showing 1 changed file with 2 additions and 5 deletions.
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 180d7fc

Please # to comment.