Skip to content

Commit

Permalink
fix(ui): FileDetails title status icon not being updated (#5942)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jun 20, 2024
1 parent 71c1754 commit e9ddf9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ui/client/components/FileDetails.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { hasFailedSnapshot } from '@vitest/ws-client'
import {
browserState,
client,
Expand Down Expand Up @@ -30,6 +31,10 @@ const graphData = computed(() => {
}
})
const failedSnapshot = computed(() => {
return current.value && hasFailedSnapshot(current.value)
})
function open() {
const filePath = current.value?.filepath
if (filePath) {
Expand Down Expand Up @@ -116,7 +121,7 @@ debouncedWatch(
>
<div>
<div p="2" h-10 flex="~ gap-2" items-center bg-header border="b base">
<StatusIcon :task="current" />
<StatusIcon :state="current.result?.state" :mode="current.mode" :failed-snapshot="failedSnapshot" />
<div
v-if="current?.file.projectName"
font-light
Expand Down

0 comments on commit e9ddf9c

Please sign in to comment.