Add tutorial flag to map component and update navigation from register page
continuous-integration/drone/push Build is passing Details

tutorial
Alix JEUDI--LEMOINE 3 days ago
parent 3b44c026a3
commit 8c43bc57e2

@ -28,6 +28,7 @@ export class LeafletMapComponent implements OnInit {
private allPins: Pin[] = [];
private pinCountries: { [pinId: string]: string } = {};
private contextMenu: L.Popup | null = null;
private showTutorial: boolean = false;
availableCountries: string[] = [];
availablePersons: string[] = [];
@ -56,6 +57,7 @@ export class LeafletMapComponent implements OnInit {
this.route.queryParams.subscribe((params) => {
const pinId = params['pin'];
if (pinId) {
const marker = this.markersMap[pinId];
if (marker) {
@ -67,6 +69,8 @@ export class LeafletMapComponent implements OnInit {
}
}
});
this.showTutorial = this.route.snapshot.paramMap.get('tutorial') === "true";
}
private initializeMap(): void {

@ -84,7 +84,7 @@ export class RegisterPageComponent {
this.closeRegisterModal();
setTimeout(() => {
this.router.navigate(['/map']);
this.router.navigate(['/map', {tutorial: true}]);
}, 1);
},
error: (response) => {

Loading…
Cancel
Save