Fix Search and Option Display #38
This commit is contained in:
@@ -441,7 +441,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
||||
value-attribute="id"
|
||||
searchable
|
||||
:disabled="mode === 'show'"
|
||||
:search-attributes="['label']"
|
||||
:search-attributes="['label','name','description','number']"
|
||||
searchable-placeholder="Suche..."
|
||||
v-model="item.costCentre"
|
||||
class="flex-auto"
|
||||
@@ -450,10 +450,10 @@ const findIncomingInvoiceErrors = computed(() => {
|
||||
{{costcentres.find(i => i.id === item.costCentre) ? costcentres.find(i => i.id === item.costCentre).name : "Keine Kostenstelle ausgewählt" }}
|
||||
</template>
|
||||
<template #option="{option}">
|
||||
<span v-if="option.vehicle">Fahrzeug - {{option.name}}</span>
|
||||
<span v-else-if="option.project">Projekt - {{option.name}}</span>
|
||||
<span v-else-if="option.inventoryitem">Inventarartikel - {{option.name}}</span>
|
||||
<span v-else>{{option.name}}</span>
|
||||
<span v-if="option.vehicle">{{option.number}} - Fahrzeug - {{option.name}}</span>
|
||||
<span v-else-if="option.project">{{option.number}} - Projekt - {{option.name}}</span>
|
||||
<span v-else-if="option.inventoryitem">{{option.number}} - Inventarartikel - {{option.name}}</span>
|
||||
<span v-else>{{option.number}} - {{option.name}}</span>
|
||||
</template>
|
||||
|
||||
</USelectMenu>
|
||||
|
||||
Reference in New Issue
Block a user