add placeholder when day without events is selected

This commit is contained in:
marlon-erler
2024-07-26 07:11:17 +02:00
parent efe4a87b63
commit ddbdae9d14
3 changed files with 13 additions and 1 deletions
+8
View File
@@ -47,6 +47,14 @@ export function CalendarPage(calendarPageViewModel: CalendarPageViewModel) {
if (listState == undefined) {
return <div></div>;
} else if (listState.value.size == 0) {
return (
<div class="width-100 height-100 flex-column justify-center align-center">
<span class="secondary">
{translations.chatPage.calendar.noEvents}
</span>
</div>
);
} else {
return (
<div