Remove bind of project month in resident calendar options
This commit is contained in:
@@ -24,7 +24,12 @@ export class RotaState {
|
||||
holidays = $state<CalendarDate[]>([]);
|
||||
forbiddenPairs = $state<ForbiddenPair[]>([]);
|
||||
|
||||
projectMonth = $derived(new CalendarDate(this.selectedYear, this.selectedMonth, 1));
|
||||
projectMonth = $state(new CalendarDate(2026, 2, 1));
|
||||
|
||||
syncProjectMonth() {
|
||||
this.projectMonth = new CalendarDate(this.selectedYear, this.selectedMonth, 1);
|
||||
}
|
||||
|
||||
projectMonthDays = $derived(this.projectMonth.calendar.getDaysInMonth(this.projectMonth));
|
||||
daysArray = $derived(Array.from({ length: this.projectMonthDays }, (_, i) => i + 1));
|
||||
emptySlots = $derived(Array.from({ length: getDayOfWeek(this.projectMonth, "en-GB") }));
|
||||
|
||||
Reference in New Issue
Block a user