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-fast-table/handlers/state/relations-transformer.ts

27 lines
1.3 KiB

import {$injectFields, injectorBridge} from "../../../angular/angular-injector-bridge.functions";
import {States} from "../../../states.service";
import {collapsedGroupClass, hierarchyGroupClass, hierarchyRootClass} from "../../helpers/wp-table-hierarchy-helpers";
import {WorkPackageTable} from "../../wp-fast-table";
import {WorkPackageTableHierarchiesService} from './../../state/wp-table-hierarchy.service';
import {WorkPackageTableHierarchies} from "../../wp-table-hierarchies";
import {indicatorCollapsedClass} from "../../builders/modes/hierarchy/single-hierarchy-row-builder";
import {tableRowClassName} from '../../builders/rows/single-row-builder';
import {debugLog} from '../../../../helpers/debug_output';
import {WorkPackageTableRelationColumnsService} from '../../state/wp-table-relation-columns.service';
import {WorkPackageTableRelationColumns} from '../../wp-table-relation-columns';
export class RelationsTransformer {
public wpTableRelationColumns:WorkPackageTableRelationColumnsService;
public states:States;
constructor(table:WorkPackageTable) {
$injectFields(this, 'wpTableRelationColumns', 'states');
this.states.updates.relationUpdates
.values$('Refreshing expanded relations on user request')
.subscribe((state: WorkPackageTableRelationColumns) => {
table.redrawTableAndTimeline();
});
}
}