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/work-package-states.service.ts

24 lines
598 B

import {multiInput, createNewContext, StatesGroup} from "reactivestates";
import {opServicesModule} from "../angular-modules";
import {whenDebugging} from "../helpers/debug_output";
import {RelationsStateValue} from "./wp-relations/wp-relations.service";
/* /api/v3/work_packages */
export class WorkPackageStates extends StatesGroup {
/* /:id/relations */
relations = multiInput<RelationsStateValue>();
}
const ctx = createNewContext();
const wpStates = ctx.create(WorkPackageStates);
whenDebugging(() => {
wpStates.enableLog(true);
});
opServicesModule.value('wpStates', wpStates);