@@ -15,6 +15,7 @@ import { isScopedLabel } from '~/lib/utils/common_utils';
15
15
import RichTimestampTooltip from ' ~/vue_shared/components/rich_timestamp_tooltip.vue' ;
16
16
import WorkItemLinkChildMetadata from ' ee_else_ce/work_items/components/shared/work_item_link_child_metadata.vue' ;
17
17
import WorkItemTypeIcon from ' ../work_item_type_icon.vue' ;
18
+ import WorkItemStateBadge from ' ../work_item_state_badge.vue' ;
18
19
import {
19
20
STATE_OPEN ,
20
21
WIDGET_TYPE_PROGRESS ,
@@ -44,6 +45,7 @@ export default {
44
45
RichTimestampTooltip,
45
46
WorkItemLinkChildMetadata,
46
47
WorkItemTypeIcon,
48
+ WorkItemStateBadge,
47
49
},
48
50
directives: {
49
51
GlTooltip: GlTooltipDirective,
@@ -99,21 +101,18 @@ export default {
99
101
isChildItemOpen () {
100
102
return this .childItem .state === STATE_OPEN ;
101
103
},
102
- statusIconName () {
103
- return this .isChildItemOpen ? ' issue-open-m' : ' issue-close' ;
104
- },
105
104
childItemType () {
106
105
return this .childItem .workItemType .name ;
107
106
},
108
- statusIconClass () {
109
- return this .isChildItemOpen ? ' gl-text-green-500' : ' gl-text-blue-500' ;
110
- },
111
107
stateTimestamp () {
112
108
return this .isChildItemOpen ? this .childItem .createdAt : this .childItem .closedAt ;
113
109
},
114
110
stateTimestampTypeText () {
115
111
return this .isChildItemOpen ? this .$options .i18n .created : this .$options .i18n .closed ;
116
112
},
113
+ childItemTypeColorClass () {
114
+ return this .isChildItemOpen ? ' gl-text-secondary' : ' gl-text-gray-300' ;
115
+ },
117
116
hasMetadata () {
118
117
if (this .metadataWidgets ) {
119
118
return (
@@ -152,7 +151,7 @@ export default {
152
151
data- testid= " links-child"
153
152
>
154
153
< div ref= " stateIcon" class = " gl-cursor-help" >
155
- < work- item- type- icon class = " gl-text-secondary " : work- item- type= " childItemType" / >
154
+ < work- item- type- icon : color - class = " childItemTypeColorClass " : work- item- type= " childItemType" / >
156
155
< gl- tooltip : target= " () => $refs.stateIcon" >
157
156
{{ childItemType }}
158
157
< / gl- tooltip>
@@ -172,6 +171,7 @@ export default {
172
171
< / span>
173
172
< gl- link
174
173
: href= " childItem.webUrl"
174
+ : class = " { '!gl-text-secondary': !isChildItemOpen }"
175
175
class = " gl-hyphens-auto gl-break-words gl-font-semibold"
176
176
@click .exact = " $emit('click', $event)"
177
177
@mouseover= " $emit('mouseover')"
@@ -180,7 +180,7 @@ export default {
180
180
{{ childItem .title }}
181
181
< / gl- link>
182
182
< / div>
183
- < div class = " gl-flex gl-justify-end" >
183
+ < div class = " gl-flex gl-items-center gl- justify-end" >
184
184
< gl- avatars- inline
185
185
v- if = " assignees.length"
186
186
: avatars= " assignees"
@@ -202,11 +202,7 @@ export default {
202
202
class = " gl-cursor-help"
203
203
data- testid= " item-status-icon"
204
204
>
205
- < gl- icon
206
- : class = " statusIconClass"
207
- : name= " statusIconName"
208
- : aria- label= " stateTimestampTypeText"
209
- / >
205
+ < work- item- state- badge : work- item- state= " childItem.state" : show- icon= " false" / >
210
206
< / span>
211
207
< rich- timestamp- tooltip
212
208
: target= " `statusIcon-${childItem.id}`"
@@ -237,7 +233,7 @@ export default {
237
233
< div v- if = " canUpdate" >
238
234
< gl- button
239
235
v- gl- tooltip
240
- class = " -gl-mr-2 -gl-mt-2 "
236
+ class = " -gl-mr-1 -gl-mt-1 "
241
237
category= " tertiary"
242
238
size= " small"
243
239
icon= " close"
0 commit comments