OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[ng v20] Remove reference to obsolete InjectFlags
Alexander Brandon Coles1aee0b90887d
diff --git a/frontend/src/app/shared/helpers/angular/inject-field.decorator.ts b/frontend/src/app/shared/helpers/angular/inject-field.decorator.tsindex f8cefa76a0f..3a852849d0d 100644--- a/frontend/src/app/shared/helpers/angular/inject-field.decorator.ts+++ b/frontend/src/app/shared/helpers/angular/inject-field.decorator.ts@@ -1,22 +1,22 @@import 'reflect-metadata';-import { Injector } from '@angular/core';+import { InjectOptions, Injector } from '@angular/core';import { debugLog } from 'core-app/shared/helpers/debug_output';export interface InjectableClass {injector:Injector;}-export function InjectField(token?:any, defaultValue:any = null, flags?:InjectFlags) {+export function InjectField(token?:any, defaultValue:any = null, options?:InjectOptions) {return (target:InjectableClass, property:string) => {// eslint-ignore-next-line no-param-reassignif (delete (target as any)[property]) {Object.defineProperty(target, property, {get(this:InjectableClass) {if (token) {- return this.injector.get<any>(token, defaultValue, flags);+ return this.injector.get<any>(token, defaultValue, options);}const type = Reflect.getMetadata('design:type', target, property);- return this.injector.get<any>(type, defaultValue, flags);+ return this.injector.get<any>(type, defaultValue, options);},set(this:InjectableClass) {debugLog(`Trying to set InjectField property ${property}`);