From 78f6e06dd804399f1e6d9a9b88e8fc4bd07d446a Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Tue, 9 Jul 2019 23:22:58 +0200 Subject: [PATCH] Prevent double mobile back buttons Fixes an error where a close and a back button could be shown in mobile mode --- .../app/shared/components/head-bar/head-bar.component.html | 4 ++-- .../src/app/shared/components/head-bar/head-bar.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/components/head-bar/head-bar.component.html b/client/src/app/shared/components/head-bar/head-bar.component.html index 9109cc283..087cdd31e 100644 --- a/client/src/app/shared/components/head-bar/head-bar.component.html +++ b/client/src/app/shared/components/head-bar/head-bar.component.html @@ -7,12 +7,12 @@
- - diff --git a/client/src/app/shared/components/head-bar/head-bar.component.ts b/client/src/app/shared/components/head-bar/head-bar.component.ts index 6c3fd4944..4011cb75d 100644 --- a/client/src/app/shared/components/head-bar/head-bar.component.ts +++ b/client/src/app/shared/components/head-bar/head-bar.component.ts @@ -112,7 +112,7 @@ export class HeadBarComponent { public saveEvent = new EventEmitter(); public get showBackButton(): boolean { - return !this.nav && !this.editMode && !this.multiSelectMode && this.routingState.isSafePrevUrl; + return !this.nav && !this.multiSelectMode && (this.routingState.isSafePrevUrl || !this.goBack); } /**