From: Ernesto Puerta Date: Mon, 20 Apr 2020 11:48:02 +0000 (+0200) Subject: mgr/dashboard: fix backport #33764 X-Git-Tag: v14.2.10~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7022411be3255d769b30551f18c386c596f020a1;p=ceph.git mgr/dashboard: fix backport #33764 Backport https://github.com/ceph/ceph/pull/33764/ resulted in the mixing of Bootstrap 4 classes into Nautilus dashboard, which is Bootstrap 3 based. This fix reverts most of those unintended changes (see cbb4c62b9b918823594f506488fc6c0ab4ee2300 for understanding the original extent of changes). Fixes: https://tracker.ceph.com/issues/44198 Signed-off-by: Ernesto Puerta --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html index a3961e433a9..4de89afb914 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html @@ -1,31 +1,27 @@
-
-
CRUSH map viewer
-
-
-
- - - - {{ node.status }} - -   - - - -
- +
+
+

+ CRUSH map viewer +

+
+
+
+ + + {{ node.status }} +   + + + +
+
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts index 297aa4410cc..2e6e458a202 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts @@ -33,8 +33,8 @@ describe('CrushmapComponent', () => { it('should display right title', () => { fixture.detectChanges(); - const card = debugElement.nativeElement.querySelector('.card-header'); - expect(card.textContent).toBe('CRUSH map viewer'); + const span = debugElement.nativeElement.querySelector('span'); + expect(span.textContent).toBe('CRUSH map viewer'); }); describe('test tree', () => {