mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
* rework PackageDataEntry for new strategy * fix type error * fix issues with manifest fetching * mock installs working
45 lines
1.6 KiB
HTML
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>
|