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 <[email protected]>
Signed-off-by: Antonia Schwennesen <[email protected]>
  • Loading branch information
2 people authored and backportbot[bot] committed Feb 3, 2025
1 parent 16bdf34 commit bcf8643
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 bcf8643

Please sign in to comment.