mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
feat(calendar_view): allow rendering multiple events from multiple relation
This commit is contained in:
parent
a8509d8b1d
commit
1b4281cf77
@ -65,8 +65,10 @@ export default class CalendarView extends ViewMode {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const titles = await CalendarView.#parseCustomTitle(customTitle, note);
|
||||||
|
for (const title of titles) {
|
||||||
const eventData: typeof events[0] = {
|
const eventData: typeof events[0] = {
|
||||||
title: (await CalendarView.#parseCustomTitle(customTitle, note))[0],
|
title: title,
|
||||||
start: startDate
|
start: startDate
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,6 +81,7 @@ export default class CalendarView extends ViewMode {
|
|||||||
|
|
||||||
events.push(eventData);
|
events.push(eventData);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user