samedi malin + start other

This commit is contained in:
nessar committed 2025-10-27 00:09:06 +01:00
1 parent 9ccbe2534a
commit 87558d7da5
3 files changed
+243 -68

No files matched your search

@@ -28,9 +28,7 @@ export class CalendarMonth implements OnInit {
return monthNames[this.monthIndex];
}
constructor(private calendarService: CalendarService) { }
ngOnInit(): void {
this.weeksInAMonth = this.calendarService.weeksInMonth(this.monthIndex, this.year);
this.weeksInAMonth = CalendarService.weeksInMonth(this.monthIndex, this.year);
}
}
@@ -3,7 +3,7 @@ import { UserInputService } from '../../services/user-input-service';
import { DateRange } from '@angular/material/datepicker';
import { MatCard, MatCardContent } from '@angular/material/card';
import { CalendarMonth } from "../calendar-month/calendar-month";
import { CalendarService, SelectedDates } from '../../services/calendar-service';
import { CalendarService, SelectedDates, VacationsNumber } from '../../services/calendar-service';
@Component({
selector: 'app-calendar-year',
@@ -21,5 +21,9 @@ export class CalendarYear implements OnInit {
ngOnInit(): void {
this.selectedDates = this.calendarService.getSelectedDatesForYear(this.year);
const vacationsNumber: VacationsNumber = {
cp: 10, rtt: 5, other: 0
};
this.selectedDates.optimizeVacations(vacationsNumber);
}
}