diff --git a/frontend/projects/ui/src/app/pages/apps-routes/app-properties/app-properties.page.ts b/frontend/projects/ui/src/app/pages/apps-routes/app-properties/app-properties.page.ts index 1f228730d..949393d32 100644 --- a/frontend/projects/ui/src/app/pages/apps-routes/app-properties/app-properties.page.ts +++ b/frontend/projects/ui/src/app/pages/apps-routes/app-properties/app-properties.page.ts @@ -5,6 +5,7 @@ import { Subscription } from 'rxjs' import { copyToClipboard } from 'src/app/util/web.util' import { AlertController, + IonBackButtonDelegate, IonContent, ModalController, NavController, @@ -31,6 +32,8 @@ export class AppPropertiesPage { unmasked: { [key: string]: boolean } = {} running = true + @ViewChild(IonBackButtonDelegate, { static: false }) + backButton: IonBackButtonDelegate @ViewChild(IonContent) content: IonContent subs: Subscription[] = [] @@ -45,6 +48,12 @@ export class AppPropertiesPage { private readonly patch: PatchDbService, ) {} + ionViewDidEnter() { + this.backButton.onClick = () => { + history.back() + } + } + async ngOnInit() { this.pkgId = this.route.snapshot.paramMap.get('pkgId')