Skip to content

Commit

Permalink
Calendar: Don't always switch back to dual view (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilRashbrook authored Jan 10, 2025
1 parent 5306f9d commit e81fb2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/frontend/Calendar/CalendarApp.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<vbox flex class="calendar-app">
<vbox flex class="main">
<MainView {events} bind:start={$selectedDate} {dateInterval}>
<MainView {events} bind:start={$selectedDate} dateInterval={$selectedDateInterval}>
<TitleBarLeft on:addEvent={() => catchErrors(addEvent)} slot="top-left" />
<ViewSelector bind:dateInterval slot="top-right" />
<ViewSelector bind:dateInterval={$selectedDateInterval} slot="top-right" />
</MainView>
</vbox>
</vbox>
Expand All @@ -20,7 +20,6 @@
import { mergeColls } from "svelte-collections";
import { t } from "../../l10n/l10n";
$: dateInterval = $selectedDateInterval;
$: events = mergeColls(appGlobal.calendars.map(cal => cal.fillRecurrences(new Date(Date.now() + 1e11)))).sortBy(ev => ev.startTime);
$: if (!$selectedCalendar) { $selectedCalendar = appGlobal.calendars.first; }
Expand Down

0 comments on commit e81fb2a

Please sign in to comment.