Skip to content

Commit 395439f

Browse files
authored
Merge pull request #72 from devforth/fix-select-no-items-label
fix: add separate label to select when no options passed
2 parents 179e87b + 256767e commit 395439f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/afcl/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<label v-if="!$slots.item" :for="item.value">{{ item.label }}</label>
4747
</div>
4848
<div v-if="!filteredItems.length" class="px-4 py-2 cursor-pointer text-gray-400 dark:text-gray-300">
49-
{{ $t('No results found') }}
49+
{{ options.length ? $t('No results found') : $t('No items here') }}
5050
</div>
5151

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

0 commit comments

Comments
 (0)