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
Reload inline-create after changes to changeset state
Oliver Günther33a60c8b0b00
diff --git a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.tsindex 9fe7fbf35a1..a19e8bb6e36 100644--- a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts@@ -39,17 +39,20 @@ import {Output,} from '@angular/core';import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';-import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';+import {+ WorkPackageViewFocusService,+} from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';import { filter } from 'rxjs/operators';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { WorkPackageInlineCreateService } from 'core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service';import {- combineLatest,- Subscription,-} from 'rxjs';-import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';+ WorkPackageInlineCreateService,+} from 'core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service';+import { combineLatest, Subscription } from 'rxjs';+import {+ WorkPackageViewColumnsService,+} from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';import { EditForm } from 'core-app/shared/components/fields/edit/edit-form/edit-form';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -62,6 +65,9 @@ import {import { WorkPackageCreateService } from '../wp-new/wp-create.service';import { WorkPackageTable } from '../wp-fast-table/wp-fast-table';import { onClickOrEnter } from '../wp-fast-table/handlers/click-or-enter-handler';+import {+ HalResourceEditingService,+} from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';@Component({selector: '[wpInlineCreate]',@@ -110,6 +116,7 @@ export class WorkPackageInlineCreateComponent extends UntilDestroyedMixin implemprotected readonly wpInlineCreate:WorkPackageInlineCreateService,protected readonly wpTableColumns:WorkPackageViewColumnsService,protected readonly wpTableFocus:WorkPackageViewFocusService,+ protected readonly halEditing:HalResourceEditingService,protected readonly authorisationService:AuthorisationService) {super();}@@ -133,6 +140,7 @@ export class WorkPackageInlineCreateComponent extends UntilDestroyedMixin implemthis.showing.emit(this.canAdd || this.canReference);});+// Register callback on newly created work packagesthis.registerCreationCallback();@@ -229,9 +237,9 @@ export class WorkPackageInlineCreateComponent extends UntilDestroyedMixin implem.then((change:WorkPackageChangeset) => {const wp = this.currentWorkPackage = change.projectedResource;- this.editingSubscription = this- .wpCreate- .changesetUpdates$()+ change+ .state+ ?.values$().pipe(filter(() => !!this.currentWorkPackage),).subscribe((form) => {diff --git a/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.tsindex 4ce21062763..4127f34d952 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts+++ b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts@@ -169,9 +169,9 @@ export class ProgressPopoverEditFieldComponent extends ProgressEditFieldComponen// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignmentthis.resource.remainingTime = JSONresponse.remainingTime;- this.change.push();this.onModalClosed();+ this.change.push();this.cdRef.detectChanges();}}