mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix more bugs with updates tab... (#2219)
This commit is contained in:
@@ -40,7 +40,10 @@
|
|||||||
<ion-label>
|
<ion-label>
|
||||||
<h1 style="line-height: 1.3">{{ pkg.manifest.title }}</h1>
|
<h1 style="line-height: 1.3">{{ pkg.manifest.title }}</h1>
|
||||||
<h2 class="inline">
|
<h2 class="inline">
|
||||||
<span>{{ local.manifest.version | displayEmver }}</span>
|
<span>
|
||||||
|
{{ local.installed?.manifest?.version || '' |
|
||||||
|
displayEmver }}
|
||||||
|
</span>
|
||||||
|
|
||||||
<ion-icon name="arrow-forward"></ion-icon>
|
<ion-icon name="arrow-forward"></ion-icon>
|
||||||
|
|
||||||
@@ -92,7 +95,7 @@
|
|||||||
<ion-button
|
<ion-button
|
||||||
fill="clear"
|
fill="clear"
|
||||||
strong
|
strong
|
||||||
(click)="viewInMarketplace($event, local)"
|
(click)="viewInMarketplace($event, host.url, pkg.manifest.id)"
|
||||||
>
|
>
|
||||||
View listing
|
View listing
|
||||||
<ion-icon slot="end" name="open-outline"></ion-icon>
|
<ion-icon slot="end" name="open-outline"></ion-icon>
|
||||||
|
|||||||
@@ -55,13 +55,11 @@ export class UpdatesPage {
|
|||||||
private readonly alertCtrl: AlertController,
|
private readonly alertCtrl: AlertController,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
viewInMarketplace(event: Event, pkg: PackageDataEntry) {
|
viewInMarketplace(event: Event, url: string, id: string) {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
const url = pkg.installed?.['marketplace-url']
|
|
||||||
const queryParams = url ? { url } : {}
|
|
||||||
|
|
||||||
this.navCtrl.navigateForward([`marketplace/${pkg.manifest.id}`], {
|
this.navCtrl.navigateForward([`marketplace/${id}`], {
|
||||||
queryParams,
|
queryParams: { url },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user