health-modal.component.html 1.5KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="modal-header">
  2. <h4 class="modal-title" id="showHealthLabel">
  3. {{'health.indicator.' + baseName(currentHealth.name) | translate}}
  4. {{subSystemName(currentHealth.name)}}
  5. </h4>
  6. <button aria-label="Close" data-dismiss="modal" class="close" type="button" (click)="activeModal.dismiss('closed')"><span aria-hidden="true">&times;</span>
  7. </button>
  8. </div>
  9. <div class="modal-body pad">
  10. <div *ngIf="currentHealth.details">
  11. <h5 jhiTranslate="health.details.properties">Properties</h5>
  12. <div class="table-responsive">
  13. <table class="table table-striped">
  14. <thead>
  15. <tr>
  16. <th class="text-left" jhiTranslate="health.details.name">Name</th>
  17. <th class="text-left" jhiTranslate="health.details.value">Value</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <tr *ngFor="let entry of currentHealth.details.details | keys">
  22. <td class="text-left">{{entry.key}}</td>
  23. <td class="text-left">{{readableValue(entry.value)}}</td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. </div>
  29. <div *ngIf="currentHealth.error">
  30. <h4 jhiTranslate="health.details.error">Error</h4>
  31. <pre>{{currentHealth.error}}</pre>
  32. </div>
  33. </div>
  34. <div class="modal-footer">
  35. <button data-dismiss="modal" class="btn btn-secondary float-left" type="button" (click)="activeModal.dismiss('closed')">Done</button>
  36. </div>