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
5 files
+ 139
30
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -36,8 +36,11 @@ export default {
@@ -36,8 +36,11 @@ export default {
hierarchyWidget() {
hierarchyWidget() {
return this.metadataWidgets[WIDGET_TYPE_HIERARCHY];
return this.metadataWidgets[WIDGET_TYPE_HIERARCHY];
},
},
 
showRolledUpCounts() {
 
return this.hierarchyWidget && this.rolledUpCountsByType.length > 0;
 
},
rolledUpCountsByType() {
rolledUpCountsByType() {
return this.hierarchyWidget?.rolledUpCountsByType;
return this.hierarchyWidget?.rolledUpCountsByType || [];
},
},
},
},
};
};
@@ -47,7 +50,11 @@ export default {
@@ -47,7 +50,11 @@ export default {
<div class="gl-flex gl-justify-between">
<div class="gl-flex gl-justify-between">
<div class="gl-flex gl-flex-wrap gl-items-center gl-gap-2">
<div class="gl-flex gl-flex-wrap gl-items-center gl-gap-2">
<span class="gl-text-sm gl-text-secondary">{{ reference }}</span>
<span class="gl-text-sm gl-text-secondary">{{ reference }}</span>
<work-item-rollup-count :roll-up-counts-by-type="rolledUpCountsByType" />
<work-item-rollup-count
 
v-if="showRolledUpCounts"
 
:roll-up-counts-by-type="rolledUpCountsByType"
 
info-type="detailed"
 
/>
<item-milestone
<item-milestone
v-if="milestone"
v-if="milestone"
:milestone="milestone"
:milestone="milestone"
Loading