Remove dead code

pull/11879/head
Oliver Günther 2 years ago
parent 7436bd8453
commit 8326291750
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 24
      frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts

@ -635,35 +635,11 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
}, 500);
}
renderTemplate(template:TemplateRef<unknown>, id:string, data:ResourceLabelContentArg|EventContentArg):{ domNodes:unknown[] } {
if (this.isDraggedEvent(id)) {
this.viewLookup.markForDestruction(id);
}
const ref = this.viewLookup.getView(template, id, data);
return { domNodes: ref.rootNodes };
}
unrenderTemplate(id:string):void {
this.viewLookup.markForDestruction(id);
}
isDraggedEvent(id:string):boolean {
const dragging = this.draggingItem$.getValue();
return !!dragging && (dragging.event.extendedProps?.workPackage as undefined|WorkPackageResource)?.href === id;
}
eventId(data:EventContentArg):string {
return [
data.event.id,
data.event.start?.toISOString(),
data.event.end?.toISOString(),
data.timeText,
`dragging=${data.isDragging.toString()}`,
`resizing=${data.isResizing.toString()}`,
].join('-');
}
public showAssigneeAddRow():void {
this.showAddAssignee$.next(true);
this.ucCalendar.getApi().refetchEvents();

Loading…
Cancel
Save