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