File tree Expand file tree Collapse file tree 2 files changed +10
-29
lines changed
components/dashboard/widgets Expand file tree Collapse file tree 2 files changed +10
-29
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export function DwEngagementCount({
134
134
< GridItem md = { 6 } lg = { 3 } >
135
135
< CountComponent
136
136
onClickCount = { onClickCount }
137
- count = { summaryCount ?. past + summaryCount ?. terminating }
137
+ count = { ( summaryCount ?. past || 0 ) + ( summaryCount ?. terminating || 0 ) }
138
138
icon = { AsleepIcon }
139
139
status = { 'past' }
140
140
subtitle = { 'All completed engagements.' }
Original file line number Diff line number Diff line change @@ -227,37 +227,18 @@ export function Dashboard() {
227
227
summaryCount = { summaryCount }
228
228
isLoading = { isLoadingSummaryCount }
229
229
onClickCount = { ( status : string ) => {
230
- history . push (
231
- `/app/engagements/${ status } ?filter=${ createBase64ParseableFilter (
232
- {
233
- engagementRegions :
234
- selectedRegions . length > 0
235
- ? selectedRegions
236
- : undefined ,
237
- }
238
- ) } `
239
- ) ;
230
+ const filter = { engagementRegions : [ ] , allowedStatuses :[ ] }
231
+ if ( selectedRegions . length > 0 ) {
232
+ filter . engagementRegions = selectedRegions
233
+ }
234
+ if ( status !== 'all' ) {
235
+ filter . allowedStatuses = [ status ] ;
236
+ }
237
+
238
+ history . push ( `/app/engagements/${ status } ?filter=${ createBase64ParseableFilter ( filter ) } ` ) ;
240
239
} }
241
240
/>
242
241
</ GridItem >
243
- { /* <GridItem sm={12} xl={12} xl2={6}>
244
- {withArtifacts(
245
- DwLastWeeklyReport2,
246
- () =>
247
- artifactService.getArtifacts({
248
- page: 1,
249
- perPage: 5,
250
- type: 'weeklyReport',
251
- startDate: dateFilter?.startDate,
252
- endDate: dateFilter?.endDate,
253
- regions: selectedRegions,
254
- sortOrder: 'DESC',
255
- sortFields: 'updated',
256
- }),
257
-
258
- engagementService.getEngagementById
259
- )}
260
- </GridItem> */ }
261
242
< GridItem colSpan = { 1 } sm = { 12 } md = { 6 } xl = { 6 } xl2 = { 6 } >
262
243
< DashboardPeopleEnabledCard
263
244
usersEnabled = { enabledUsers }
You can’t perform that action at this time.
0 commit comments