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
[32179] Reload list when deleting work package
Oliver Güntherfc1568f0cbec
diff --git a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.tsindex 61aad136d57..f5598505e13 100644--- a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts+++ b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts@@ -144,7 +144,7 @@ export class WpDestroyModal extends OpModalComponent implements OnInit {* since the WP in view (split/full) does not exist any more.*/if (this.$state.current.name !== 'work-packages.list') {- this.backRoutingService.goBack(true);+ this.backRoutingService.goBack(true, { reload: true });}}).catch(() => {diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/modules/common/back-routing/back-routing.service.tsindex e27188c5514..b4c74a8f148 100644--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts+++ b/frontend/src/app/modules/common/back-routing/back-routing.service.ts@@ -29,6 +29,7 @@import {Injectable, Injector} from '@angular/core';import {StateService, Transition} from "@uirouter/core";import {KeepTabService} from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";+import {TransitionOptions} from "@uirouter/core/lib/transition/interface";interface BackRouteOptions {name:string;@@ -45,20 +46,20 @@ export class BackRoutingService {constructor(protected injector:Injector) {}- public goBack(preferListOverSplit:boolean = false) {+ public goBack(preferListOverSplit:boolean = false, opts:Partial<TransitionOptions> = {}) {// Default: back to list// When coming from a deep link or a create formif (!this.backRoute || this.backRoute.name.includes('new')) {- this.$state.go('work-packages.list', this.$state.params);+ this.$state.go('work-packages.list', this.$state.params, opts);} else {if (this.keepTab.isDetailsState(this.backRoute.parent)) {- if(preferListOverSplit) {- this.$state.go('work-packages.list', this.$state.params);+ if (preferListOverSplit) {+ this.$state.go('work-packages.list', this.$state.params, opts);} else {- this.$state.go(this.keepTab.currentDetailsState, this.$state.params);+ this.$state.go(this.keepTab.currentDetailsState, this.$state.params, opts);}} else {- this.$state.go(this.backRoute.name, this.backRoute.params);+ this.$state.go(this.backRoute.name, this.backRoute.params, opts);}}}