Skip to content
Snippets Groups Projects

Work item rolled up count by type

Merged Deepika Guliani requested to merge 474913-hierarchy-widget-rollups-count-badge-hover into master
Compare and
8 files
+ 270
9
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -18,7 +18,6 @@ import WorkItemTypeIcon from '../work_item_type_icon.vue';
import {
STATE_OPEN,
WIDGET_TYPE_PROGRESS,
WIDGET_TYPE_HIERARCHY,
WIDGET_TYPE_HEALTH_STATUS,
WIDGET_TYPE_MILESTONE,
WIDGET_TYPE_ASSIGNEES,
@@ -73,13 +72,11 @@ export default {
return this.metadataWidgets[WIDGET_TYPE_LABELS]?.labels?.nodes || [];
},
metadataWidgets() {
return this.childItem.widgets?.reduce((metadataWidgets, widget) => {
// Skip Hierarchy widget as it is not part of metadata.
if (widget.type && widget.type !== WIDGET_TYPE_HIERARCHY) {
// eslint-disable-next-line no-param-reassign
metadataWidgets[widget.type] = widget;
return this.childItem.widgets?.reduce((acc, widget) => {
if (widget.type) {
acc[widget.type] = widget;
}
return metadataWidgets;
return acc;
}, {});
},
assignees() {
Loading