File tree 2 files changed +14
-11
lines changed
packages/ui/client/components
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ import { explorerTree } from '~/composables/explorer'
4
4
5
5
const { width } = useWindowSize ()
6
6
const classes = computed (() => {
7
- // if there are no files, then in progress and gray
8
- if (explorerTree .summary .files === 0 ) {
9
- return ' !bg-gray-4 !dark:bg-gray-7 in-progress'
10
- }
11
- else if (! finished .value ) {
12
- return ' in-progress'
13
- }
14
-
15
- return null
7
+ return [
8
+ explorerTree .summary .files === 0 && ' !bg-gray-4 !dark:bg-gray-7' ,
9
+ ! finished .value && ' in-progress' ,
10
+ ].filter (Boolean ).join (' ' )
16
11
})
17
12
18
13
const widthPass = computed (() => {
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { finished } from ' ~/composables/client/state'
3
+ import { explorerTree } from ' ~/composables/explorer'
4
+ </script >
5
+
1
6
<template >
2
7
<div gap-0 flex =" ~ col gap-4" h-full justify-center items-center >
3
- <!-- <div bg-header rounded-lg p="y4 x2"> -->
8
+ <template v-if =" explorerTree .summary .files === 0 && finished " >
9
+ <div class =" text-gray-5" >
10
+ No tests found
11
+ </div >
12
+ </template >
4
13
<section aria-labelledby =" tests" m =" y-4 x-2" >
5
14
<TestsEntry />
6
15
</section >
7
16
<TestFilesEntry />
8
- <!-- </div> -->
9
17
</div >
10
18
</template >
You can’t perform that action at this time.
0 commit comments