[CST-5677] restored empty panels; show message if panel is empty

This commit is contained in:
Davide Negretti
2022-06-06 16:50:44 +02:00
parent 39cba0414a
commit 8ac9425db3
3 changed files with 7 additions and 0 deletions

View File

@@ -26,3 +26,6 @@
</div>
</ng-container>
<ng-container *ngIf="!healthComponent?.details && !healthComponent?.components">
<ds-alert [content]="'health-page.section.no-issues'" [type]="AlertTypeEnum.Info"></ds-alert>
</ng-container>

View File

@@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core';
import { HealthComponent } from '../../models/health-component.model';
import { TranslateService } from '@ngx-translate/core';
import { AlertType } from '../../../shared/alert/aletr-type';
@Component({
selector: 'ds-health-component',
@@ -20,6 +21,8 @@ export class HealthComponentComponent {
*/
@Input() healthComponentName: string;
public AlertTypeEnum = AlertType;
/**
* A boolean representing if div should start collapsed
*/

View File

@@ -1621,6 +1621,7 @@
"health-page.title": "Health",
"health-page.section.no-issues": "No issues detected",
"home.description": "",