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

23 lines
609 B

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