mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
[CST-5677] restored empty panels; show message if panel is empty
This commit is contained in:
@@ -26,3 +26,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<ng-container *ngIf="!healthComponent?.details && !healthComponent?.components">
|
||||||
|
<ds-alert [content]="'health-page.section.no-issues'" [type]="AlertTypeEnum.Info"></ds-alert>
|
||||||
|
</ng-container>
|
||||||
|
@@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core';
|
|||||||
|
|
||||||
import { HealthComponent } from '../../models/health-component.model';
|
import { HealthComponent } from '../../models/health-component.model';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
import { AlertType } from '../../../shared/alert/aletr-type';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-health-component',
|
selector: 'ds-health-component',
|
||||||
@@ -20,6 +21,8 @@ export class HealthComponentComponent {
|
|||||||
*/
|
*/
|
||||||
@Input() healthComponentName: string;
|
@Input() healthComponentName: string;
|
||||||
|
|
||||||
|
public AlertTypeEnum = AlertType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A boolean representing if div should start collapsed
|
* A boolean representing if div should start collapsed
|
||||||
*/
|
*/
|
||||||
|
@@ -1621,6 +1621,7 @@
|
|||||||
|
|
||||||
"health-page.title": "Health",
|
"health-page.title": "Health",
|
||||||
|
|
||||||
|
"health-page.section.no-issues": "No issues detected",
|
||||||
|
|
||||||
|
|
||||||
"home.description": "",
|
"home.description": "",
|
||||||
|
Reference in New Issue
Block a user