Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
grata
2023-05-07 11:54:28 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,9 @@ export class DetailComponent implements OnInit {
if (user?.id !== undefined) {
let waypointVisited: WaypointsVisitedEntity = {userId: user.id , waypointId: this.waypointInfo.id}
console.log("waypointVisited", waypointVisited)
this.waypointVisitedService.createWaypoint(waypointVisited)
this.waypointVisitedService.createWaypoint(waypointVisited).subscribe(waypointVisited => {
console.log("waypointVisited request return", waypointVisited)
})
}
})
} else {

View File

@@ -28,7 +28,7 @@
<a class="link link-primary" href="location/{{location.location}}/{{waypoint.id}}"> {{waypoint.name}}</a>
</h3>
<div class="distance">
<h4 *ngIf="waypoint.distance && !positionNotFound">{{translations.distance}}{{waypoint.distance}} km</h4>
<h4 *ngIf="waypoint.distance && !positionNotFound">{{translations.distance}}: {{waypoint.distance}} km</h4>
<h4 *ngIf="positionNotFound">{{translations.positionNotFoundErrorMessage}}</h4>
</div>