Commits

Giuseppe Digilio authored 32a91f64d9d
[CST-5535] Refactoring health page
No tags

src/app/health-page/health/health.component.html

Deleted
1 -<div class="container">
2 - <ul ngbNav #nav="ngbNav" [(activeId)]="activeId" class="nav-tabs">
3 - <li [ngbNavItem]="'Health'">
4 - <a ngbNavLink>{{'health-page.health' | translate}}</a>
5 - <ng-template ngbNavContent>
6 - <div id="health">
7 - {{'health-page.status' | translate}} : <i [ngClass]="getHealthIconClass(healthGlobalStatus)"> </i>
8 - <mat-accordion multi="true">
9 - <mat-expansion-panel *ngFor="let health of healthArr">
10 - <mat-expansion-panel-header>
11 - <mat-panel-title> {{ health.components }} <i [ngClass]="getHealthIconClass(health.status)"></i></mat-panel-title>
12 - </mat-expansion-panel-header>
13 - <ng-template matExpansionPanelContent>
14 - <div *ngFor="let item of health.details | keyvalue">
15 - {{ item.key }} : {{item.value}}
16 - </div>
17 - </ng-template>
18 - </mat-expansion-panel>
19 - </mat-accordion>
20 - </div>
21 - </ng-template>
22 - </li>
23 - <li [ngbNavItem]="'Info'">
24 - <a ngbNavLink>{{'health-page.info' | translate}}</a>
25 - <ng-template ngbNavContent>
26 - <div id="info">
27 - <small [ngStyle]="serverInfo.style" *ngFor="let serverInfo of serverInfoArr; let index = index">
28 - {{ serverInfo.value }} <br>
29 - </small>
30 - </div>
31 - </ng-template>
32 - </li>
33 - </ul>
34 - <div [ngbNavOutlet]="nav" class="mt-2"></div>
35 -</div>
36 -
37 -
38 -
39 -

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut