From 509380c74ac5a10fcec3ff2aeac76e06ec7c5c9a Mon Sep 17 00:00:00 2001 From: alfonsomthd Date: Wed, 3 Oct 2018 13:59:50 +0200 Subject: [PATCH] mgr/dashboard: New Landing Page: Milestone 2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Added tests for Health component to ensure that all groups and cards are rendered. Fixes: https://tracker.ceph.com/issues/27050 Signed-off-by: Alfonso Martínez --- .../dashboard/health/health.component.html | 22 +++++---- .../dashboard/health/health.component.spec.ts | 47 ++++++++++++++++++- 2 files changed, 60 insertions(+), 9 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html index 650d09e7d64..54b5bbe3f79 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html @@ -7,7 +7,8 @@ + [contentClass]="contentData.health.checks.length > 0 ? 'content-highlight content-row-size-1-5' : 'content-highlight'" + *ngIf="contentData.health">