From bc0c63a4e920acedb5fc39c3d4ce78ed88c7830a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20Ku=CC=88ng?= Date: Sun, 7 May 2023 13:47:11 +0200 Subject: [PATCH] management changes --- src/app/component/management/management.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/component/management/management.component.ts b/src/app/component/management/management.component.ts index bb8321f..ed51a89 100644 --- a/src/app/component/management/management.component.ts +++ b/src/app/component/management/management.component.ts @@ -165,18 +165,21 @@ export class ManagementComponent implements OnInit { this.locationService.updateLocation(location).subscribe(location => { this.locations?.splice(this.locations?.indexOf(location), 1, location); }); + this.closeLocationForm() } editWaypoint(waypoint: WaypointsEntity) { this.waypointService.updateWaypoint(waypoint, waypoint.id).subscribe(waypoint => { this.waypoints?.splice(this.waypoints?.indexOf(waypoint), 1, waypoint); }); + this.closeWaypointForm() } editUser(user: UserEntity) { this.userService.updateUser(user, user.id).subscribe(user => { this.users?.splice(this.users?.indexOf(user), 1, user); }); + this.closeUserForm() } openEditLocationForm(location: LocationEntity) {