@@ -10,12 +10,14 @@ import ChartZoom from 'app/components/charts/chartZoom';
10
10
import ErrorPanel from 'app/components/charts/components/errorPanel' ;
11
11
import TransparentLoadingMask from 'app/components/charts/components/transparentLoadingMask' ;
12
12
import TransitionChart from 'app/components/charts/transitionChart' ;
13
+ import ReleaseSeries from 'app/components/charts/releaseSeries' ;
13
14
import { AREA_COLORS , getInterval } from 'app/components/charts/utils' ;
14
15
import { IconWarning } from 'app/icons' ;
15
16
import EventsRequest from 'app/views/events/utils/eventsRequest' ;
16
17
import { getUtcToLocalDateObject } from 'app/utils/dates' ;
17
18
import EventView from 'app/utils/discover/eventView' ;
18
19
import withApi from 'app/utils/withApi' ;
20
+ import { decodeScalar } from 'app/utils/queryString' ;
19
21
import theme from 'app/utils/theme' ;
20
22
import { getDuration } from 'app/utils/formatters' ;
21
23
@@ -61,6 +63,7 @@ class DurationChart extends React.Component<Props> {
61
63
: undefined ;
62
64
63
65
const end = this . props . end ? getUtcToLocalDateObject ( this . props . end ) : undefined ;
66
+ const utc = decodeScalar ( router . location . query . utc ) ;
64
67
65
68
const legend = {
66
69
right : 16 ,
@@ -152,24 +155,28 @@ class DurationChart extends React.Component<Props> {
152
155
: [ ] ;
153
156
154
157
return (
155
- < TransitionChart loading = { loading } reloading = { reloading } >
156
- < TransparentLoadingMask visible = { reloading } />
157
- < AreaChart
158
- { ...zoomRenderProps }
159
- legend = { legend }
160
- series = { series }
161
- seriesOptions = { {
162
- showSymbol : false ,
163
- } }
164
- tooltip = { tooltip }
165
- grid = { {
166
- left : '24px' ,
167
- right : '24px' ,
168
- top : '32px' ,
169
- bottom : '12px' ,
170
- } }
171
- />
172
- </ TransitionChart >
158
+ < ReleaseSeries utc = { utc } api = { api } projects = { project } >
159
+ { ( { releaseSeries} ) => (
160
+ < TransitionChart loading = { loading } reloading = { reloading } >
161
+ < TransparentLoadingMask visible = { reloading } />
162
+ < AreaChart
163
+ { ...zoomRenderProps }
164
+ legend = { legend }
165
+ series = { [ ...series , ...releaseSeries ] }
166
+ seriesOptions = { {
167
+ showSymbol : false ,
168
+ } }
169
+ tooltip = { tooltip }
170
+ grid = { {
171
+ left : '24px' ,
172
+ right : '24px' ,
173
+ top : '32px' ,
174
+ bottom : '12px' ,
175
+ } }
176
+ />
177
+ </ TransitionChart >
178
+ ) }
179
+ </ ReleaseSeries >
173
180
) ;
174
181
} }
175
182
</ EventsRequest >
0 commit comments