Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zophiana
Copy link

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

image

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]>
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.99%. Comparing base (056a8aa) to head (381c306).
Report is 2 commits behind head on main.

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              
Flag Coverage Δ
javascript 14.53% <ø> (-0.01%) ⬇️
php 59.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@st3iny st3iny left a 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.

Comment on lines +9 to +16
: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" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: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.

@st3iny st3iny added bug design Related to design, interface, interaction design, UX, etc. Feature: Calendar list 3. to review Waiting for reviews labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Related to design, interface, interaction design, UX, etc. Feature: Calendar list
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calendars accidentally hidden
2 participants