-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(calendar-list): restrict calendar visibility toggle to checkbox only #6681
base: main
Are you sure you want to change the base?
fix(calendar-list): restrict calendar visibility toggle to checkbox only #6681
Conversation
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 nextcloud#3027 Signed-off-by: Antonia Schwennesen <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6681 +/- ##
============================================
- Coverage 23.00% 22.99% -0.01%
Complexity 475 475
============================================
Files 252 252
Lines 12112 12116 +4
Branches 2310 2310
============================================
Hits 2786 2786
- Misses 8999 9003 +4
Partials 327 327
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR. I tested it and it works.
I left some feedback below.
:menu-open.sync="menuOpen"> | ||
<template #icon> | ||
<AppNavigationIconBullet v-if="calendar.enabled" | ||
:color="calendar.color" | ||
@click.prevent.stop="toggleEnabled" /> | ||
<AppNavigationIconBullet v-else | ||
:color="calendar.color" | ||
@click.prevent.stop="toggleEnabled" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:menu-open.sync="menuOpen"> | |
<template #icon> | |
<AppNavigationIconBullet v-if="calendar.enabled" | |
:color="calendar.color" | |
@click.prevent.stop="toggleEnabled" /> | |
<AppNavigationIconBullet v-else | |
:color="calendar.color" | |
@click.prevent.stop="toggleEnabled" /> | |
:menu-open.sync="menuOpen"> | |
<template #icon> | |
<AppNavigationIconBullet :color="calendar.color" /> |
This is actually a bug. Toggling should not be available in public views because the enabled state cannot be persisted anyway.
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