OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/wp-table/timeline/global-elements/timeline-relation-element.ts

19 lines
484 B

import {RelationResource} from "../../../api/api-v3/hal-resources/relation-resource.service";
export function workPackagePrefix(workPackageId: string) {
return `__tl-relation-${workPackageId}`;
}
export class TimelineRelationElement {
constructor(public belongsToId: string, public relation: RelationResource) {
}
public get classNames(): string[] {
return [
workPackagePrefix(this.relation.ids.from),
workPackagePrefix(this.relation.ids.to)
];
}
}