Skip to content

Commit

Permalink
Bug RHSTOR-486: Fixed missing infotip for Data resiliency card in cep…
Browse files Browse the repository at this point in the history
…h dashboard

Signed-off-by: Afreen Rahman <afrahman@redhat.com>
  • Loading branch information
Afreen Rahman committed Jul 30, 2019
1 parent a0b6474 commit 2b6c8ff
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { GreenCheckCircleIcon, RedExclamationCircleIcon } from '@console/shared'
import { DashboardCard } from '@console/internal/components/dashboard/dashboard-card/card';
import { DashboardCardBody } from '@console/internal/components/dashboard/dashboard-card/card-body';
import { DashboardCardHeader } from '@console/internal/components/dashboard/dashboard-card/card-header';
import { DashboardCardHelp } from '@console/internal/components/dashboard/dashboard-card';
import { DashboardCardTitle } from '@console/internal/components/dashboard/dashboard-card/card-title';
import {
withDashboardResources,
DashboardItemProps,
withDashboardResources,
} from '@console/internal/components/dashboards-page/with-dashboard-resources';
import { DATA_RESILIENCY_QUERIES } from '../../../../constants/queries';

Expand Down Expand Up @@ -71,6 +72,8 @@ const DataResiliency: React.FC<DashboardItemProps> = ({
'result',
]);

const infoText =
'Data Resiliency presents status of data replication and rebalancing operations.';
const totalPg = getCapacityStats(totalPGRaw);
const cleanAndActivePg = getCapacityStats(cleanAndActivePGRaw);

Expand All @@ -82,6 +85,7 @@ const DataResiliency: React.FC<DashboardItemProps> = ({
<DashboardCard className="ceph-data-resiliency__dashboard-card">
<DashboardCardHeader>
<DashboardCardTitle>Data Resiliency</DashboardCardTitle>
<DashboardCardHelp>{infoText}</DashboardCardHelp>
</DashboardCardHeader>
<DashboardCardBody
className="ceph-data-resiliency__dashboard-body"
Expand Down

0 comments on commit 2b6c8ff

Please sign in to comment.