Files
start-os/web/projects/ui/src/app/pages/apps-routes/app-show/app-show.page.html
Matt Hill cc38dab76f Rework PackageDataEntry for new strategy (#2573)
* rework PackageDataEntry for new strategy

* fix type error

* fix issues with manifest fetching

* mock installs working
2024-03-19 08:38:04 -06:00

45 lines
1.6 KiB
HTML

<ng-container *ngIf="pkgPlus$ | async as pkgPlus">
<!-- header -->
<app-show-header [pkg]="pkgPlus.pkg"></app-show-header>
<!-- content -->
<ion-content *ngIf="pkgPlus.pkg as pkg" class="ion-padding with-widgets">
<!-- ** installing, updating, restoring ** -->
<ng-container *ngIf="showProgress(pkg); else installed">
<app-show-progress
*ngIf="pkg['state-info']['installing-info'] as installingInfo"
[phases]="installingInfo.progress.phases"
></app-show-progress>
</ng-container>
<!-- Installed -->
<ng-template #installed>
<ion-item-group *ngIf="pkgPlus.status as status">
<!-- ** status ** -->
<app-show-status [pkg]="pkg" [status]="status"></app-show-status>
<!-- ** installed && !backing-up ** -->
<ng-container
*ngIf="isInstalled(pkg) && status.primary !== 'backing-up'"
>
<!-- ** health checks ** -->
<app-show-health-checks
*ngIf="status.primary === 'running'"
[manifest]="pkg['state-info'].manifest"
></app-show-health-checks>
<!-- ** dependencies ** -->
<app-show-dependencies
*ngIf="pkgPlus.dependencies.length"
[dependencies]="pkgPlus.dependencies"
></app-show-dependencies>
<!-- ** menu ** -->
<app-show-menu [buttons]="pkg | toButtons"></app-show-menu>
<!-- ** additional ** -->
<app-show-additional
[manifest]="pkg['state-info'].manifest"
></app-show-additional>
</ng-container>
</ion-item-group>
</ng-template>
</ion-content>
</ng-container>