Skip to content

Commit a87fb80

Browse files
committed
fix(buds): v-if/v-else adjacency in BUDImpactedReposDialog
Vite's Vue compiler rejected the no-matches placeholder because the literal '.' between the inline v-if span and the v-else span counted as a text node, breaking the v-if/v-else adjacency rule. Move the two variants into <template v-if> / <template v-else> wrappers so the directive pair sits on directly adjacent siblings with no intervening text. Vue 3 template-compile rule — both branches still render the same wording, only the wrapping element changes. Found at runtime while testing the integration branch — would have blocked the picker from rendering whenever the filter input matched zero repos or no repos were tracked yet. Signed-off-by: Arun Rajkumar <mickyarunr@gmail.com>
1 parent 49879b2 commit a87fb80

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

frontend/src/components/buds/BUDImpactedReposDialog.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@
6363
v-if="!visibleRepos.length && !retiredRows.length && !trackedReposLoading"
6464
class="text-caption text-medium-emphasis text-center py-6"
6565
>
66-
No tracked repos match
67-
<span v-if="filter">"<code>{{ filter }}</code>"</span>.
68-
<span v-else>Add a repo in Settings first.</span>
66+
<template v-if="filter">
67+
No tracked repos match "<code>{{ filter }}</code>".
68+
</template>
69+
<template v-else>
70+
No tracked repos yet. Add a repo in Settings first.
71+
</template>
6972
</div>
7073
<div v-else class="bud-impacted-repos__list">
7174
<v-checkbox

0 commit comments

Comments
 (0)