Skip to content

Commit

Permalink
Bug 1896229: Hide Current Rate of Bytes Received and Current Rate of …
Browse files Browse the repository at this point in the history
…Bytes Transmitted charts

We currently don't have code to handle gauge panels. Sam suggested hiding these cards for now and creating a story to support gauge panels.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1896229
  • Loading branch information
rebeccaalpert committed Nov 10, 2020
1 parent fc0b2f1 commit ee55648
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions frontend/public/components/monitoring/dashboards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,23 @@ const Card: React.FC<CardProps> = ({ panel }) => {

const panelClassModifier = getPanelClassModifier(panel);
return (
<div
className={`monitoring-dashboards__panel monitoring-dashboards__panel--${panelClassModifier}`}
>
<DashboardCard
className="monitoring-dashboards__card"
gradient={panel.type === 'grafana-piechart-panel'}
panel.type !== 'gauge' && (
<div
className={`monitoring-dashboards__panel monitoring-dashboards__panel--${panelClassModifier}`}
>
<DashboardCardHeader className="monitoring-dashboards__card-header">
<DashboardCardTitle>{panel.title}</DashboardCardTitle>
</DashboardCardHeader>
<DashboardCardBody className="co-dashboard-card__body--dashboard-graph">
<CardBody panel={panel} />
</DashboardCardBody>
</DashboardCard>
</div>
<DashboardCard
className="monitoring-dashboards__card"
gradient={panel.type === 'grafana-piechart-panel'}
>
<DashboardCardHeader className="monitoring-dashboards__card-header">
<DashboardCardTitle>{panel.title}</DashboardCardTitle>
</DashboardCardHeader>
<DashboardCardBody className="co-dashboard-card__body--dashboard-graph">
<CardBody panel={panel} />
</DashboardCardBody>
</DashboardCard>
</div>
)
);
};

Expand Down

0 comments on commit ee55648

Please sign in to comment.