Skip to content

Commit f7ac0a2

Browse files
authored
Merge pull request ceph#51567 from rhcs-dashboard/remove-card-title
mgr/dashboard: remove title tooltip of cards landing page Reviewed-by: Avan Thakkar <[email protected]> Reviewed-by: Nizamudeen A <[email protected]>
2 parents 5fe9286 + ac73126 commit f7ac0a2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="card shadow-sm flex-fill">
22
<h4 class="card-title mt-4 ms-4 mb-0">
3-
{{ title }}
3+
{{ cardTitle }}
44
</h4>
55
<div class="card-body ps-0 pe-0">
66
<ng-content></ng-content>

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('CardComponent', () => {
2424

2525
it('Setting cards title makes title visible', () => {
2626
const title = 'Card Title';
27-
component.title = title;
27+
component.cardTitle = title;
2828
fixture.detectChanges();
2929
const titleDiv = fixture.debugElement.nativeElement.querySelector('.card-title');
3030

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import { Component, Input } from '@angular/core';
77
})
88
export class CardComponent {
99
@Input()
10-
title: string;
10+
cardTitle: string;
1111
}

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container-fluid"
22
*ngIf="healthData && enabledFeature$ | async as enabledFeature">
33
<div class="row mx-0">
4-
<cd-card title="Details"
4+
<cd-card cardTitle="Details"
55
i18n-title
66
class="col-sm-3 px-3"
77
[ngClass]="{'d-flex': flexHeight}"
@@ -16,7 +16,7 @@
1616
</dl>
1717
</cd-card>
1818

19-
<cd-card title="Status"
19+
<cd-card cardTitle="Status"
2020
i18n-title
2121
class="col-sm-6 px-3 d-flex"
2222
aria-label="Status card">
@@ -77,7 +77,7 @@
7777
</section>
7878
</cd-card>
7979

80-
<cd-card title="Capacity"
80+
<cd-card cardTitle="Capacity"
8181
i18n-title
8282
class="col-sm-3 px-3"
8383
[ngClass]="{'d-flex': flexHeight}"
@@ -94,7 +94,7 @@
9494
<!-- Second row -->
9595
<div class="row mx-0">
9696
<!-- Inventory Card -->
97-
<cd-card title="Inventory"
97+
<cd-card cardTitle="Inventory"
9898
i18n-title
9999
class="col-sm-3 px-3 d-flex"
100100
aria-label="Inventory card">
@@ -183,7 +183,7 @@
183183
</li>
184184
</cd-card>
185185

186-
<cd-card title="Cluster utilization"
186+
<cd-card cardTitle="Cluster utilization"
187187
i18n-title
188188
class="col-sm-9 px-3 d-flex"
189189
aria-label="Cluster utilization card">

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ describe('Dashbord Component', () => {
225225

226226
getHealthSpy.and.returnValue(of(payload));
227227
fixture.detectChanges();
228-
const clusterStatusCard = fixture.debugElement.query(By.css('cd-card[title="Status"] i'));
228+
const clusterStatusCard = fixture.debugElement.query(By.css('cd-card[cardTitle="Status"] i'));
229229
expect(clusterStatusCard.nativeElement.title).toEqual(`${payload.health.status}`);
230230

231231
// HEALTH_ERR

0 commit comments

Comments
 (0)