File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import React from 'react';
12
12
import type { WrappedComponentProps } from 'react-intl' ;
13
13
import { injectIntl } from 'react-intl' ;
14
14
import { connect } from 'react-redux' ;
15
- import { ComputedReportItemValueType } from 'routes/components/charts/common' ;
16
15
import { CostDistribution } from 'routes/components/costDistribution' ;
17
16
import { Currency } from 'routes/components/currency' ;
18
17
import { DateRange } from 'routes/components/dateRange' ;
@@ -130,8 +129,6 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, DetailsHeade
130
129
const { currentDateRangeType } = this . state ;
131
130
132
131
const showContent = report && ! providersError && providers ?. meta ?. count > 0 ;
133
- const showCostDistribution = costDistribution === ComputedReportItemValueType . distributed ; // Always show -- see https://issues.redhat.com/browse/COST-5870
134
-
135
132
const { cost, infrastructureCost, supplementaryCost } = getTotalCost ( report , costDistribution ) ;
136
133
137
134
return (
@@ -169,7 +166,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, DetailsHeade
169
166
timeScopeValue = { timeScopeValue }
170
167
/>
171
168
</ FlexItem >
172
- { showCostDistribution && (
169
+ { costDistribution && (
173
170
< FlexItem >
174
171
< CostDistribution costDistribution = { costDistribution } onSelect = { onCostDistributionSelect } />
175
172
</ FlexItem >
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import React from 'react';
16
16
import type { WrappedComponentProps } from 'react-intl' ;
17
17
import { injectIntl } from 'react-intl' ;
18
18
import { connect } from 'react-redux' ;
19
- import { ComputedReportItemValueType } from 'routes/components/charts/common' ;
20
19
import { CostDistribution } from 'routes/components/costDistribution' ;
21
20
import { CostType } from 'routes/components/costType' ;
22
21
import { Currency } from 'routes/components/currency' ;
@@ -304,9 +303,8 @@ class ExplorerHeaderBase extends React.Component<ExplorerHeaderProps, ExplorerHe
304
303
const tagPathsType = getTagReportPathsType ( perspective ) ;
305
304
306
305
const showContent = report && ! providersError && providers ?. meta ?. count > 0 ;
307
- const showCostDistribution = costDistribution === ComputedReportItemValueType . distributed ; // Always show -- see https://issues.redhat.com/browse/COST-5870
308
-
309
306
const { cost, infrastructureCost, supplementaryCost } = getTotalCost ( report , costDistribution ) ;
307
+
310
308
const dateRange = intl . formatDateTimeRange ( new Date ( startDate + 'T00:00:00' ) , new Date ( endDate + 'T00:00:00' ) , {
311
309
day : 'numeric' ,
312
310
month : 'long' ,
@@ -349,7 +347,7 @@ class ExplorerHeaderBase extends React.Component<ExplorerHeaderProps, ExplorerHe
349
347
tagPathsType = { tagPathsType }
350
348
/>
351
349
</ FlexItem >
352
- { showCostDistribution && (
350
+ { costDistribution && (
353
351
< FlexItem >
354
352
< CostDistribution costDistribution = { costDistribution } onSelect = { onCostDistributionSelect } />
355
353
</ FlexItem >
You can’t perform that action at this time.
0 commit comments