]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: remove title tooltip of cards landing page
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 18 May 2023 12:16:10 +0000 (14:16 +0200)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 18 May 2023 12:21:31 +0000 (14:21 +0200)
Fixes: https://tracker.ceph.com/issues/61250
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.spec.ts

index 35dffd46c047c969114e8b4ecc60b8823f33d919..a2f5b9d3d240d0f0d67ffac8772c3d9a9effe517 100644 (file)
@@ -1,6 +1,6 @@
 <div class="card shadow-sm flex-fill">
   <h4 class="card-title mt-4 ms-4 mb-0">
-    {{ title }}
+    {{ cardTitle }}
   </h4>
   <div class="card-body ps-0 pe-0">
     <ng-content></ng-content>
index fdc34fdf7b22adcaad91ed04f91d312ba4557b4e..287e1cfe08f0065d5e1883fca4cecef8b1b75fdd 100644 (file)
@@ -24,7 +24,7 @@ describe('CardComponent', () => {
 
   it('Setting cards title makes title visible', () => {
     const title = 'Card Title';
-    component.title = title;
+    component.cardTitle = title;
     fixture.detectChanges();
     const titleDiv = fixture.debugElement.nativeElement.querySelector('.card-title');
 
index b6bb99c66909d40a2fcb45765ec21ea2f8660fd5..8e93cc8645c854589dbb7d7f44fff72e01bb3fb7 100644 (file)
@@ -7,5 +7,5 @@ import { Component, Input } from '@angular/core';
 })
 export class CardComponent {
   @Input()
-  title: string;
+  cardTitle: string;
 }
index 2e3fd652d9ee6dce24ab3640721fd642d7e661fa..94c1435557c110f0b8bf449a9382acf24e29bebd 100644 (file)
@@ -1,7 +1,7 @@
 <div class="container-fluid"
      *ngIf="healthData && enabledFeature$ | async as enabledFeature">
   <div class="row mx-0">
-    <cd-card title="Details"
+    <cd-card cardTitle="Details"
              i18n-title
              class="col-sm-3 px-3"
              [ngClass]="{'d-flex': flexHeight}"
@@ -16,7 +16,7 @@
       </dl>
     </cd-card>
 
-    <cd-card title="Status"
+    <cd-card cardTitle="Status"
              i18n-title
              class="col-sm-6 px-3 d-flex"
              aria-label="Status card">
@@ -77,7 +77,7 @@
       </section>
     </cd-card>
 
-    <cd-card title="Capacity"
+    <cd-card cardTitle="Capacity"
              i18n-title
              class="col-sm-3 px-3"
              [ngClass]="{'d-flex': flexHeight}"
@@ -94,7 +94,7 @@
   <!-- Second row -->
   <div class="row mx-0">
     <!-- Inventory Card -->
-    <cd-card title="Inventory"
+    <cd-card cardTitle="Inventory"
              i18n-title
              class="col-sm-3 px-3 d-flex"
              aria-label="Inventory card">
       </li>
     </cd-card>
 
-    <cd-card title="Cluster utilization"
+    <cd-card cardTitle="Cluster utilization"
              i18n-title
              class="col-sm-9 px-3 d-flex"
              aria-label="Cluster utilization card">
index 677ca35905b73c703383fe1120d0f8321342ba3f..2ca65a468aa6c16b60a6557ac29be01afae1f2f3 100644 (file)
@@ -225,7 +225,7 @@ describe('Dashbord Component', () => {
 
     getHealthSpy.and.returnValue(of(payload));
     fixture.detectChanges();
-    const clusterStatusCard = fixture.debugElement.query(By.css('cd-card[title="Status"] i'));
+    const clusterStatusCard = fixture.debugElement.query(By.css('cd-card[cardTitle="Status"] i'));
     expect(clusterStatusCard.nativeElement.title).toEqual(`${payload.health.status}`);
 
     // HEALTH_ERR