dont nav to app show when launching app ui from list

This commit is contained in:
Matt Hill
2022-02-27 22:18:26 -07:00
committed by Aiden McClelland
parent 36f8d5ef4e
commit ad8d1ff850
4 changed files with 6 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
slot="end"
fill="clear"
color="primary"
(click)="launchUi()"
(click)="launchUi($event)"
[disabled]="!(pkg.entry.state | isLaunchable: status:manifest.interfaces)"
>
<ion-icon slot="icon-only" name="open-outline"></ion-icon>

View File

@@ -28,7 +28,9 @@ export class AppListPkgComponent {
return this.pkg.entry.manifest
}
launchUi(): void {
launchUi(e: Event): void {
e.stopPropagation()
e.preventDefault()
this.launcherService.launch(this.pkg.entry)
}
}

View File

@@ -23,7 +23,7 @@
<ion-item
button
*ngFor="let entry of devData | keyvalue"
(click)="goToProject(entry.key)"
[routerLink]="[entry.key]"
>
<p>{{ entry.value.name }}</p>
<ion-button

View File

@@ -79,6 +79,7 @@ export class DeveloperListPage {
async presentAction(id: string, event: Event) {
event.stopPropagation()
event.preventDefault()
const buttons: ActionSheetButton[] = [
{
text: 'Edit Name',
@@ -222,10 +223,6 @@ export class DeveloperListPage {
loader.dismiss()
}
}
async goToProject(id: string) {
await this.navCtrl.navigateForward([id], { relativeTo: this.route })
}
}
const SAMPLE_INSTUCTIONS = `# Create Instructions using Markdown! :)`