mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
remove time from health check and add loading message to health check
This commit is contained in:
committed by
Aiden McClelland
parent
f5f6b92d1b
commit
a17e81ece5
@@ -62,13 +62,14 @@
|
|||||||
<ng-container *ngIf="!connectionFailure">
|
<ng-container *ngIf="!connectionFailure">
|
||||||
<ion-item *ngFor="let health of healthChecks | keyvalue : asIsOrder">
|
<ion-item *ngFor="let health of healthChecks | keyvalue : asIsOrder">
|
||||||
<ng-container *ngIf="$any(health.value).result as result">
|
<ng-container *ngIf="$any(health.value).result as result">
|
||||||
<ion-spinner class="icon-spinner" color="warning" slot="start" *ngIf="['starting', 'loading'] | includes : result"></ion-spinner>
|
<ion-spinner class="icon-spinner" color="primary" slot="start" *ngIf="['starting', 'loading'] | includes : result"></ion-spinner>
|
||||||
<ion-icon slot="start" *ngIf="result === 'success'" name="checkmark" color="success"></ion-icon>
|
<ion-icon slot="start" *ngIf="result === 'success'" name="checkmark" color="success"></ion-icon>
|
||||||
<ion-icon slot="start" *ngIf="result === 'failure'" name="warning" color="warning"></ion-icon>
|
<ion-icon slot="start" *ngIf="result === 'failure'" name="warning" color="warning"></ion-icon>
|
||||||
<ion-icon slot="start" *ngIf="result === 'disabled'" name="remove" color="dark"></ion-icon>
|
<ion-icon slot="start" *ngIf="result === 'disabled'" name="remove" color="dark"></ion-icon>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2 style="font-weight: bold;">{{ health.key }}</h2>
|
<h2 style="font-weight: bold;">{{ health.key }}</h2>
|
||||||
<h2>Result: {{ result | titlecase }}</h2>
|
<h2>Result: {{ result | titlecase }}</h2>
|
||||||
|
<p *ngIf="result === 'loading'"><ion-text color="primary">{{ $any(health.value).message }}</ion-text></p>
|
||||||
<p *ngIf="result === 'failure'"><ion-text color="warning">{{ $any(health.value).error }}</ion-text></p>
|
<p *ngIf="result === 'failure'"><ion-text color="warning">{{ $any(health.value).error }}</ion-text></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -272,28 +272,23 @@ export enum HealthResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthCheckResultStarting {
|
export interface HealthCheckResultStarting {
|
||||||
time: string // UTC date string
|
|
||||||
result: HealthResult.Starting
|
result: HealthResult.Starting
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthCheckResultDisabled {
|
export interface HealthCheckResultDisabled {
|
||||||
time: string // UTC date string
|
|
||||||
result: HealthResult.Disabled
|
result: HealthResult.Disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthCheckResultSuccess {
|
export interface HealthCheckResultSuccess {
|
||||||
time: string // UTC date string
|
|
||||||
result: HealthResult.Success
|
result: HealthResult.Success
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthCheckResultLoading {
|
export interface HealthCheckResultLoading {
|
||||||
time: string // UTC date string
|
|
||||||
result: HealthResult.Loading
|
result: HealthResult.Loading
|
||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthCheckResultFailure {
|
export interface HealthCheckResultFailure {
|
||||||
time: string // UTC date string
|
|
||||||
result: HealthResult.Failure
|
result: HealthResult.Failure
|
||||||
error: string
|
error: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user