Settings: go to map after changes to map display options
All checks were successful
/ build (push) Successful in 1m4s

This commit is contained in:
phil 2024-10-24 16:36:59 +02:00
parent b9d1bb1116
commit 7d29b89f65

View file

@ -40,7 +40,7 @@
<div>
<mat-button-toggle-group #background="matButtonToggleGroup"
[value]="conf.background || conf.map?.background"
(change)="configService.setUserPref('background', background.value)"
(change)="configService.setUserPref('background', background.value) ; router.navigate(['/map'])"
>
<mat-button-toggle
*ngFor="let bms of conf.bootstrap.baseMapStyles.embedded"
@ -55,7 +55,7 @@
<mat-label>Types of zones displayed on the map</mat-label>
<div class="settings">
<mat-checkbox *ngFor="let item of conf.showZones | keyvalue" [checked]="item.value"
(change)="configService.setUserPrefValue('showZones', item.key, $event.checked)">
(change)="configService.setUserPrefValue('showZones', item.key, $event.checked) ; router.navigate(['/map'])">
{{ item.key }}
</mat-checkbox>
</div>