Skip to content

Commit

Permalink
fix: add separate label to select when no options passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Kachanovsky committed Jan 17, 2025
1 parent 103d8d8 commit 256767e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminforth/spa/src/afcl/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<label v-if="!$slots.item" :for="item.value">{{ item.label }}</label>
</div>
<div v-if="!filteredItems.length" class="px-4 py-2 cursor-pointer text-gray-400 dark:text-gray-300">
{{ $t('No results found') }}
{{ options.length ? $t('No results found') : $t('No items here') }}
</div>

<div v-if="$slots['extra-item']" class="px-4 py-2 dark:text-gray-400">
Expand Down

0 comments on commit 256767e

Please sign in to comment.