diff --git a/src/app/management/management.component.html b/src/app/management/management.component.html index c75c853..2ffa158 100644 --- a/src/app/management/management.component.html +++ b/src/app/management/management.component.html @@ -36,7 +36,7 @@
- +
@@ -135,32 +135,32 @@
- +
- +
- +
- +
- +
-
diff --git a/src/app/management/management.component.ts b/src/app/management/management.component.ts index 743ee25..6c6240c 100644 --- a/src/app/management/management.component.ts +++ b/src/app/management/management.component.ts @@ -79,18 +79,24 @@ export class ManagementComponent implements OnInit, AfterViewInit, OnDestroy { const newUser: User = {id, name, username: username, password: password}; this.userList.push(newUser); this.showUserForm = false; + this.newUser = {id: 0, name: '', username: '', password: ''}; } addLocation(name: string, region: string, lat: string, lon: string) { const id = this.locationList.length + 1; const newLocation: Location = {id, location: name, region: region, lat: lat, lon: lon}; this.locationList.push(newLocation); + this.showLocationForm = false; + this.newLocation = {id: 0, location: '', region: '', lat: '', lon: ''}; } addWaypoint(name: string, lat: string, lon: string, description: string, image: string, locationName: string) { + console.log(locationName) const id = this.waypointList.length + 1; const newWaypoint: Waypoint = {id, name, lat: lat, lon: lon, description: description, image: image, locationName: locationName}; this.waypointList.push(newWaypoint); + this.showWaypointForm = false; + this.newWaypoint = {id: 0, name: '', lat: '', lon: '', description: '', image: '', locationName: ''}; } openUserForm() { diff --git a/src/styles.css b/src/styles.css index 7dca88b..57c6aa5 100644 --- a/src/styles.css +++ b/src/styles.css @@ -4,5 +4,5 @@ @tailwind utilities; body{ - overflow-y: hidden; + }