Skip to content

Commit cc57d81

Browse files
author
Petr Kachanovsky
committed
fix: add missing inputs on filters panel
1 parent dca26f4 commit cc57d81

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

adminforth/spa/src/components/Filters.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,22 @@
5454
/>
5555

5656
<Input
57-
v-else-if="[ 'string', 'text' ].includes(c.type)"
57+
v-else-if="['string', 'text', 'unknown'].includes(c.type)"
5858
type="text"
5959
full-width
6060
:placeholder="$t('Search')"
6161
@update:modelValue="setFilterItem({ column: c, operator: 'ilike', value: $event || undefined })"
6262
:modelValue="getFilterItem({ column: c, operator: 'ilike' })"
6363
/>
6464

65+
<textarea
66+
v-else-if="['json', 'richtext'].includes(c.type)"
67+
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
68+
:placeholder="$t('Search')"
69+
:value="getFilterItem({ column: c, operator: 'ilike' })"
70+
@input="setFilterItem({ column: c, operator: 'ilike', value: $event.target.value || undefined })"
71+
/>
72+
6573
<CustomDateRangePicker
6674
v-else-if="['datetime'].includes(c.type)"
6775
:column="c"
@@ -72,7 +80,7 @@
7280
/>
7381

7482
<Input
75-
v-else-if="[ 'date', 'time' ].includes(c.type)"
83+
v-else-if="['date', 'time'].includes(c.type)"
7684
type="text"
7785
full-width
7886
:placeholder="$t('Search datetime')"

0 commit comments

Comments
 (0)