mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 05:57:47 +08:00
feat(views/calendar): disable interaction in calendar root mode
This commit is contained in:
parent
bc4d820cb0
commit
5c1db3cab2
@ -85,7 +85,8 @@ export default class CalendarView extends ViewMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async renderList(): Promise<JQuery<HTMLElement> | undefined> {
|
async renderList(): Promise<JQuery<HTMLElement> | undefined> {
|
||||||
const isEditable = true;
|
this.isCalendarRoot = this.parentNote.hasLabel("calendarRoot");
|
||||||
|
const isEditable = !this.isCalendarRoot;
|
||||||
|
|
||||||
const { Calendar } = await import("@fullcalendar/core");
|
const { Calendar } = await import("@fullcalendar/core");
|
||||||
const plugins: PluginDef[] = [];
|
const plugins: PluginDef[] = [];
|
||||||
@ -122,7 +123,6 @@ export default class CalendarView extends ViewMode {
|
|||||||
});
|
});
|
||||||
calendar.render();
|
calendar.render();
|
||||||
this.calendar = calendar;
|
this.calendar = calendar;
|
||||||
this.isCalendarRoot = this.parentNote.hasLabel("calendarRoot");
|
|
||||||
|
|
||||||
return this.$root;
|
return this.$root;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user