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
zophiana and st3iny committed Feb 1, 2025
1 parent f1ceb1a commit 8fb5f97
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 8fb5f97

Please sign in to comment.