From 21161d45801a2ef37ed45bf811f3a163f1f7f0fe Mon Sep 17 00:00:00 2001 From: bsatarnejad Date: Wed, 30 Sep 2020 09:29:33 +0200 Subject: [PATCH] refresh the page after deleting a wp in boards similar to adding wp --- .../modules/common/back-routing/back-routing.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.ts index 9870389251..c7b8566bc3 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 @@ -63,7 +63,12 @@ export class BackRoutingService { this.$state.go(baseRoute + this.keepTab.currentDetailsSubState, this.backRoute.params); } } else { - this.$state.go(this.backRoute.name, this.backRoute.params); + if (this.backRoute.parent) { + this.$state.go(this.backRoute.name, this.backRoute.params).then(() => { this.$state.reload(); }); + } + else { + this.$state.go(this.backRoute.name, this.backRoute.params); + } } } }