feat: change the colour of the birthdays calendar

This commit is contained in:
Linus Rath
2026-10-31 04:31:14 +01:00
parent b6995bb638
commit 574db42652
5 changed files with 30 additions and 6 deletions
@@ -322,8 +322,9 @@ function Section({
const isSubscription = !!isSubscriptionCalendar?.(cal.id);
const isOwn = !cal.isShared && !isBirthday && !isSubscription;
const canSetDefault = !!onSetDefault && isOwn && !cal.isDefault;
// Own calendars recolour server-side; shared ones locally (#345).
const canRecolor = !!onSetColor && (!!cal.isShared || isOwn);
// Own calendars recolour server-side; shared ones and the birthdays
// locally (#345).
const canRecolor = !!onSetColor && (!!cal.isShared || isOwn || isBirthday);
const canRename = !!onRename && isOwn;
const canShare = !!onShare && isOwn && (!cal.myRights || cal.myRights.mayShare !== false);
const canClear = !!onClear && isOwn && isWritableCalendar(cal);