Skip to content

Commit

Permalink
Add text when build list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Nov 13, 2024
1 parent aeb74b4 commit 68dd1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/BuildList.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<template>
<h3><slot /> ({{ filteredItems.length }})</h3>
<div class="build-list">
<div class="build-list" v-if="filteredItems.length">
<BuildListItem
v-for="k in filteredItems"
:keyboardItem="k"
:key="k.key"
@click="emit('showErrorPane', k.key)"
/>
</div>
<div v-else>No items to show.</div>
</template>

<script setup>
Expand Down

0 comments on commit 68dd1a5

Please sign in to comment.