fix: minor UI fixes
This commit is contained in:
parent
cd88c0d0e4
commit
360a91f8b7
@ -18,44 +18,47 @@
|
|||||||
<div
|
<div
|
||||||
v-if="storage.size"
|
v-if="storage.size"
|
||||||
v-for="(f, i) in storage"
|
v-for="(f, i) in storage"
|
||||||
:key="f.field.fieldname"
|
:key="i"
|
||||||
id="filter-list"
|
id="filter-list"
|
||||||
class="flex flex-col gap-2 mb-3"
|
class="flex items-center justify-between gap-2 mb-3"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<div class="text-gray-600 text-base pl-2 w-13 text-end">
|
<div class="text-gray-600 text-base pl-2 w-13 text-end">
|
||||||
{{ i == 0 ? 'Where' : 'And' }}
|
{{ i == 0 ? 'Where' : 'And' }}
|
||||||
</div>
|
</div>
|
||||||
<Autocomplete
|
<div id="fieldname" class="!min-w-[140px]">
|
||||||
class="!min-w-[140px]"
|
<Autocomplete
|
||||||
:value="f.field.fieldname"
|
:value="f.field.fieldname"
|
||||||
:options="filterableFields.data"
|
:options="filterableFields.data"
|
||||||
@change="(e) => updateFilter(e, i)"
|
@change="(e) => updateFilter(e, i)"
|
||||||
placeholder="Filter by..."
|
placeholder="Filter by..."
|
||||||
/>
|
/>
|
||||||
<FormControl
|
</div>
|
||||||
type="select"
|
<div id="operator">
|
||||||
v-model="f.operator"
|
<FormControl
|
||||||
:options="getOperators(f.field.fieldtype)"
|
type="select"
|
||||||
placeholder="Operator"
|
v-model="f.operator"
|
||||||
/>
|
:options="getOperators(f.field.fieldtype)"
|
||||||
<SearchComplete
|
placeholder="Operator"
|
||||||
v-if="typeLink.includes(f.field.fieldtype)"
|
/>
|
||||||
:doctype="f.field.options"
|
</div>
|
||||||
:value="f.value"
|
<div id="value" class="!min-w-[140px]">
|
||||||
@change="(v) => (f.value = v.value)"
|
<SearchComplete
|
||||||
placeholder="Value"
|
v-if="typeLink.includes(f.field.fieldtype)"
|
||||||
class="!min-w-[140px]"
|
:doctype="f.field.options"
|
||||||
/>
|
:value="f.value"
|
||||||
<component
|
@change="(v) => (f.value = v.value)"
|
||||||
v-else
|
placeholder="Value"
|
||||||
:is="getValSelect(f.field.fieldtype, f.field.options)"
|
/>
|
||||||
v-model="f.value"
|
<component
|
||||||
placeholder="Value"
|
v-else
|
||||||
class="!min-w-[140px]"
|
:is="getValSelect(f.field.fieldtype, f.field.options)"
|
||||||
/>
|
v-model="f.value"
|
||||||
<Button variant="ghost" icon="x" @click="removeFilter(i)" />
|
placeholder="Value"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<Button variant="ghost" icon="x" @click="removeFilter(i)" />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user