Skip to content

Commit b949406

Browse files
author
Guillaume Chau
committed
fix(ui): stderr new lines + selected task status color
1 parent ec44835 commit b949406

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

packages/@vue/cli-ui/src/components/TaskItem.vue

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<template>
22
<div
33
class="task-item list-item"
4-
:class="{
5-
selected
6-
}"
4+
:class="[
5+
`status-${task.status}`,
6+
{
7+
selected
8+
}
9+
]"
710
>
811
<div class="content">
912
<ItemLogo
@@ -68,4 +71,10 @@ export default {
6871
.list-item-info
6972
flex 100% 1 1
7073
width 0
74+
75+
&.selected
76+
&.status-error .list-item-info >>> .name
77+
color $vue-ui-color-danger
78+
&.status-running .list-item-info >>> .name
79+
color $vue-ui-color-info
7180
</style>

packages/@vue/cli-ui/src/components/TerminalView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default {
140140
},
141141
142142
setContent (value, ln = true) {
143-
if (ln && value.indexOf('\n') !== -1) {
143+
if (value.indexOf('\n') !== -1) {
144144
value.split('\n').forEach(
145145
t => this.setContent(t)
146146
)

0 commit comments

Comments
 (0)