diff --git a/dist/index.js b/dist/index.js index b4bda586..b8d47027 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2561,7 +2561,8 @@ /// searchEventsHeadline: "Search Events", /// - events: "Events" + events: "Events", + noEvents: "No events" } } }; @@ -2772,6 +2773,8 @@ const listState = calendarPageViewModel.monthGrid.value?.days[calendarPageViewModel.selectedDate.toString()]; if (listState == void 0) { return /* @__PURE__ */ createElement("div", null); + } else if (listState.value.size == 0) { + return /* @__PURE__ */ createElement("div", { class: "width-100 height-100 flex-column justify-center align-center" }, /* @__PURE__ */ createElement("span", { class: "secondary" }, translations.chatPage.calendar.noEvents)); } else { return /* @__PURE__ */ createElement( "div", diff --git a/src/View/ChatPages/calendarPage.tsx b/src/View/ChatPages/calendarPage.tsx index 5996a666..9ba78f95 100644 --- a/src/View/ChatPages/calendarPage.tsx +++ b/src/View/ChatPages/calendarPage.tsx @@ -47,6 +47,14 @@ export function CalendarPage(calendarPageViewModel: CalendarPageViewModel) { if (listState == undefined) { return
; + } else if (listState.value.size == 0) { + return ( +