mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
dont nav to app show when launching app ui from list
This commit is contained in:
committed by
Aiden McClelland
parent
36f8d5ef4e
commit
ad8d1ff850
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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! :)`
|
||||
|
||||
Reference in New Issue
Block a user