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
Use readonlyStatus in the frontend to fix the team planner bug
Oliver Güntherb93d4467a43e
diff --git a/frontend/src/app/features/hal/resources/status-resource.ts b/frontend/src/app/features/hal/resources/status-resource.tsindex dc4fd33ed54..e4ace8c31a4 100644--- a/frontend/src/app/features/hal/resources/status-resource.ts+++ b/frontend/src/app/features/hal/resources/status-resource.ts@@ -34,6 +34,8 @@ export class StatusResource extends HalResource {isDefault:boolean;+ isReadonly:boolean;+public get state():InputState<this> {return this.states.statuses.get(this.href as string) as any;}diff --git a/frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts b/frontend/src/app/features/hal/schemas/work-package-schema-proxy.tsindex a2956396e08..e209d1f27b6 100644--- a/frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts+++ b/frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts@@ -28,6 +28,7 @@import { SchemaProxy } from 'core-app/features/hal/schemas/schema-proxy';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';+import { StatusResource } from 'core-app/features/hal/resources/status-resource';export class WorkPackageSchemaProxy extends SchemaProxy {get(schema:SchemaResource, property:PropertyKey, receiver:any):any {@@ -72,7 +73,7 @@ export class WorkPackageSchemaProxy extends SchemaProxy {}public get isReadonly():boolean {- return this.resource.status?.isReadonly;+ return (this.resource.hasReadonlyStatus as boolean) || !!(this.resource.status as StatusResource|null)?.isReadonly;}/**