Resolve "Very unusual back button behavior"

This commit is contained in:
Rainer Killinger
2022-08-11 16:25:48 +00:00
parent 82479f463c
commit 7b1f0493da
23 changed files with 21 additions and 153 deletions

View File

@@ -18,17 +18,7 @@
<ion-header class="ion-no-border" translucent="true">
<ion-toolbar color="primary" mode="ios">
<ion-buttons slot="start">
<ion-back-button
*ngIf="items.length !== 1"
[defaultHref]="'..'"
[text]="'back' | translate | titlecase"
></ion-back-button>
<ion-back-button
*ngIf="items.length === 1"
[defaultHref]="'..'"
[text]="'back' | translate | titlecase"
(click)="resetView()"
></ion-back-button>
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>{{ 'map.page.TITLE' | translate }}</ion-title>
</ion-toolbar>