feat(search) : display reference alongside name in all entity select components

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-24 17:21:37 +01:00
parent 02ca3549d5
commit 9cc8b28122
5 changed files with 32 additions and 8 deletions

View File

@@ -147,7 +147,10 @@ const selectedTypeName = computed(() => {
return found?.name || ''
})
const entityOptionLabel = (e: any) => e.name || '(sans nom)'
const entityOptionLabel = (e: any) => {
const name = e.name || '(sans nom)'
return e.reference ? `${name}${e.reference}` : name
}
const entityOptionDescription = (e: any) => e.reference || ''
const selectedEntitySummary = computed(() => {