Skip to content

Commit e9ddf9c

Browse files
authored
fix(ui): FileDetails title status icon not being updated (#5942)
1 parent 71c1754 commit e9ddf9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/ui/client/components/FileDetails.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import { hasFailedSnapshot } from '@vitest/ws-client'
23
import {
34
browserState,
45
client,
@@ -30,6 +31,10 @@ const graphData = computed(() => {
3031
}
3132
})
3233
34+
const failedSnapshot = computed(() => {
35+
return current.value && hasFailedSnapshot(current.value)
36+
})
37+
3338
function open() {
3439
const filePath = current.value?.filepath
3540
if (filePath) {
@@ -116,7 +121,7 @@ debouncedWatch(
116121
>
117122
<div>
118123
<div p="2" h-10 flex="~ gap-2" items-center bg-header border="b base">
119-
<StatusIcon :task="current" />
124+
<StatusIcon :state="current.result?.state" :mode="current.mode" :failed-snapshot="failedSnapshot" />
120125
<div
121126
v-if="current?.file.projectName"
122127
font-light

0 commit comments

Comments
 (0)