diff --git a/src/app/_shared/components/topbar/topbar.component.html b/src/app/_shared/components/topbar/topbar.component.html index eaf6ffd..9ad613e 100644 --- a/src/app/_shared/components/topbar/topbar.component.html +++ b/src/app/_shared/components/topbar/topbar.component.html @@ -1,7 +1,14 @@ + @if(showBackButton()) { + + + + } + + @if(title(); as titleText) { {{ titleText }} diff --git a/src/app/_shared/components/topbar/topbar.component.ts b/src/app/_shared/components/topbar/topbar.component.ts index 9aaeb48..17877af 100644 --- a/src/app/_shared/components/topbar/topbar.component.ts +++ b/src/app/_shared/components/topbar/topbar.component.ts @@ -18,6 +18,8 @@ export class TopbarComponent { public searchOnType = input(false); public searchOnEnter = input(false); + public showBackButton = input(false); + doType($event: string) { if (!this.searchOnType()) return; this.search($event); diff --git a/src/app/card/card.page.html b/src/app/card/card.page.html index d7de18e..bf1b415 100644 --- a/src/app/card/card.page.html +++ b/src/app/card/card.page.html @@ -1,5 +1,5 @@ - +