remove some testing mistakes

pull/11507/head
bsatarnejad 2 years ago committed by Oliver Günther
parent 765ec722ce
commit e79c8b79ab
  1. 12
      frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts

@ -467,21 +467,9 @@ export class TimelineCellRenderer {
const dates = (evOrDates instanceof MouseEvent)
? [this.cursorDateAndDayOffset(evOrDates, renderInfo)[0]]
: evOrDates;
if (!renderInfo.workPackage.ignoreNonWorkingDays && direction === 'both' && this.weekdayService.isNonWorkingDay(dates[dates.length - 1].toDate())) {
return false;
}
if(dates.some((date) => this.weekdayService.isNonWorkingDay(date.toDate()))){
debugger;
var non = renderInfo.workPackage.ignoreNonWorkingDays;
var dir = direction;
var isNonWorkingDay = this.weekdayService.isNonWorkingDay(dates[dates.length - 1].toDate());
var enddate = dates[dates.length - 1].toDate();
}
return dates.some((date) => this.weekdayService.isNonWorkingDay(date.toDate()));
}

Loading…
Cancel
Save