refactor: change name arg
This commit is contained in:
parent
3aefee124a
commit
f26d74aae5
@ -130,10 +130,10 @@ export class ScheduleComponent {
|
|||||||
this.startWeek = this.startTerm;
|
this.startWeek = this.startTerm;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected handleWeekEvent(eventData: boolean | null) {
|
protected handleWeekEvent(forward: boolean | null) {
|
||||||
if (eventData === null) {
|
if (forward === null) {
|
||||||
this.calculateCurrentWeek();
|
this.calculateCurrentWeek();
|
||||||
} else if (eventData) {
|
} else if (forward) {
|
||||||
this.startWeek = addDays(this.startWeek, 7);
|
this.startWeek = addDays(this.startWeek, 7);
|
||||||
} else {
|
} else {
|
||||||
this.startWeek = addDays(this.startWeek, -7);
|
this.startWeek = addDays(this.startWeek, -7);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user