feat(views/calendar): support workspaceCalendarRoot

pull/1250/head
Elian Doran 2025-02-22 10:57:40 +07:00
parent a9cebe312f
commit 5a8d5c59f5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -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");