mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
* rework cutofing processing * fix default generation bug * dont hard code all dependent ids to 'hello' * fix recommendation display and bug with health cehck not updating * fix key name * fix dependency error updates and retain order on backup * fix health check display
91 lines
3.0 KiB
HTML
91 lines
3.0 KiB
HTML
<ion-header>
|
|
<ion-toolbar>
|
|
<ion-buttons slot="start">
|
|
<ion-button (click)="dismiss()">
|
|
<ion-icon slot="icon-only" name="close"></ion-icon>
|
|
</ion-button>
|
|
</ion-buttons>
|
|
<ion-title>Config</ion-title>
|
|
<ion-buttons *ngIf="!loadingText && !loadingError && hasConfig" slot="end" class="ion-padding-end">
|
|
<ion-button fill="clear" (click)="resetDefaults()">
|
|
<ion-icon slot="start" name="refresh"></ion-icon>
|
|
Reset Defaults
|
|
</ion-button>
|
|
</ion-buttons>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
|
|
<ion-content class="ion-padding">
|
|
|
|
<!-- loading -->
|
|
<text-spinner *ngIf="loadingText; else loaded" [text]="loadingText"></text-spinner>
|
|
|
|
<!-- not loading -->
|
|
<ng-template #loaded>
|
|
|
|
<ion-item *ngIf="loadingError; else noError">
|
|
<ion-label>
|
|
<ion-text color="danger">
|
|
{{ loadingError }}
|
|
</ion-text>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<ng-template #noError>
|
|
<ion-item *ngIf="hasConfig && !pkg.installed.status.configured && !configForm.dirty">
|
|
<ion-label>
|
|
<ion-text color="success">To use the default config for {{ pkg.manifest.title }}, click "Save" below.</ion-text>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<!-- auto-config -->
|
|
<ion-item lines="none" *ngIf="dependentInfo" class="rec-item" style="margin-bottom: 48px;">
|
|
<ion-label>
|
|
<h2 style="display: flex; align-items: center;">
|
|
<img style="width: 18px; margin: 4px;" [src]="pkg['static-files'].icon" [alt]="pkg.manifest.title"/>
|
|
<ion-text style="margin: 5px; font-family: 'Montserrat'; font-size: 18px;">{{ pkg.manifest.title }}</ion-text>
|
|
</h2>
|
|
<p>
|
|
<ion-text color="dark">
|
|
{{ pkg.manifest.title }} has been modified to satisfy {{ dependentInfo.title }}.
|
|
<br />
|
|
<br />
|
|
To accept the modifications, click "Save".
|
|
</ion-text>
|
|
</p>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<!-- no config -->
|
|
<ion-item *ngIf="!hasConfig">
|
|
<ion-label>
|
|
<p>No config options for {{ pkg.manifest.title }} {{ pkg.manifest.version }}.</p>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<!-- has config -->
|
|
<form *ngIf="hasConfig" [formGroup]="configForm" novalidate>
|
|
<form-object
|
|
[objectSpec]="configSpec"
|
|
[formGroup]="configForm"
|
|
[current]="configForm.value"
|
|
[showEdited]="true"
|
|
></form-object>
|
|
</form>
|
|
</ng-template>
|
|
</ng-template>
|
|
</ion-content>
|
|
|
|
<ion-footer>
|
|
<ion-toolbar>
|
|
<ion-buttons *ngIf="!loadingText && !loadingError" slot="end" class="ion-padding-end">
|
|
<ion-button *ngIf="hasConfig" fill="outline" [disabled]="saving" (click)="save()" class="enter-click" [class.no-click]="saving">
|
|
Save
|
|
</ion-button>
|
|
<ion-button *ngIf="!hasConfig" fill="outline" (click)="dismiss()" class="enter-click">
|
|
Close
|
|
</ion-button>
|
|
</ion-buttons>
|
|
</ion-toolbar>
|
|
</ion-footer>
|