feat(views/calendar): support workspaceCalendarRoot

This commit is contained in:
Elian Doran 2025-02-22 10:57:40 +02:00
parent a9cebe312f
commit 5a8d5c59f5
No known key found for this signature in database

View File

@ -87,7 +87,7 @@ export default class CalendarView extends ViewMode {
}
async renderList(): Promise<JQuery<HTMLElement> | undefined> {
this.isCalendarRoot = this.parentNote.hasLabel("calendarRoot");
this.isCalendarRoot = this.parentNote.hasLabel("calendarRoot") || this.parentNote.hasLabel("workspaceCalendarRoot");
const isEditable = !this.isCalendarRoot;
const { Calendar } = await import("@fullcalendar/core");