refresh the page after deleting a wp in boards similar to adding wp

pull/8742/head
bsatarnejad 4 years ago
parent 9d624e300b
commit 21161d4580
  1. 7
      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);
}
}
}
}

Loading…
Cancel
Save