mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix back button
This commit is contained in:
committed by
Drew Ansbacher
parent
8a7181a21c
commit
72cb451f5a
@@ -5,6 +5,7 @@ import { Subscription } from 'rxjs'
|
|||||||
import { copyToClipboard } from 'src/app/util/web.util'
|
import { copyToClipboard } from 'src/app/util/web.util'
|
||||||
import {
|
import {
|
||||||
AlertController,
|
AlertController,
|
||||||
|
IonBackButtonDelegate,
|
||||||
IonContent,
|
IonContent,
|
||||||
ModalController,
|
ModalController,
|
||||||
NavController,
|
NavController,
|
||||||
@@ -31,6 +32,8 @@ export class AppPropertiesPage {
|
|||||||
unmasked: { [key: string]: boolean } = {}
|
unmasked: { [key: string]: boolean } = {}
|
||||||
running = true
|
running = true
|
||||||
|
|
||||||
|
@ViewChild(IonBackButtonDelegate, { static: false })
|
||||||
|
backButton: IonBackButtonDelegate
|
||||||
@ViewChild(IonContent) content: IonContent
|
@ViewChild(IonContent) content: IonContent
|
||||||
subs: Subscription[] = []
|
subs: Subscription[] = []
|
||||||
|
|
||||||
@@ -45,6 +48,12 @@ export class AppPropertiesPage {
|
|||||||
private readonly patch: PatchDbService,
|
private readonly patch: PatchDbService,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
ionViewDidEnter() {
|
||||||
|
this.backButton.onClick = () => {
|
||||||
|
history.back()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.pkgId = this.route.snapshot.paramMap.get('pkgId')
|
this.pkgId = this.route.snapshot.paramMap.get('pkgId')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user