File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ const isCallback = ref(!!useRoute().query.installation_id)
5
5
const numRepos = allowedRepos .value ?.length
6
6
7
7
if (import .meta .client && isCallback .value ) {
8
- setInterval (() => {
8
+ const interval = setInterval (() => {
9
9
refresh ()
10
10
}, 1000 )
11
- watch (allowedRepos , (newRepos ) => {
11
+ const unsub = watch (allowedRepos , (newRepos ) => {
12
12
if (newRepos .length === numRepos ) return
13
13
14
14
isCallback .value = false
15
- }, { once: true })
15
+ clearInterval (interval )
16
+ unsub ()
17
+ })
16
18
}
17
19
</script >
18
20
@@ -36,18 +38,20 @@ if (import.meta.client && isCallback.value) {
36
38
</template >
37
39
</NuxtLink >
38
40
<hr >
39
- <section class =" text-center" >
41
+ <section
42
+ v-if =" allowedRepos.length"
43
+ class =" text-center"
44
+ >
40
45
or pick a repository to browse issue clusters
41
- <ul class =" p-0" >
46
+ <ul class =" p-0 flex flex-col gap-2 " >
42
47
<li
43
48
v-for =" repo in allowedRepos"
44
49
:key =" repo"
45
50
class =" list-none"
46
51
>
47
52
<NuxtLink
48
53
:to =" `/${repo}`"
49
- class =" no-underline text-gray-400 hover:underline active:text-white"
50
- >
54
+ class =" no-underline text-gray-400 hover:underline active:text- >
51
55
{{ repo }}
52
56
</NuxtLink>
53
57
</li>
You can’t perform that action at this time.
0 commit comments