BP 733: added refresh after deletion
diff --git a/src/app/standby-schedule/components/planninglist/planninglist.component.ts b/src/app/standby-schedule/components/planninglist/planninglist.component.ts
index 29e36a4..9693a0a 100644
--- a/src/app/standby-schedule/components/planninglist/planninglist.component.ts
+++ b/src/app/standby-schedule/components/planninglist/planninglist.component.ts
@@ -224,7 +224,9 @@
this.deleteModalWarningRef = this.modalService.open(DeleteDataDialogComponent);
this.deleteModalWarningRef.componentInstance.decision.subscribe(resUserModal => {
if (resUserModal) {
- this.planningService.deletePlan(this.planStatusId, currentForm).subscribe();
+ this.planningService.deletePlan(this.planStatusId, currentForm).subscribe(() => {
+ this.prepareDataAndCall('search');
+ });
}
this.deleteModalWarningRef.close();
});