fix(messages): show the resolved customer's name in the doc-action modal

CustomerPicker uses its 'label' prop as the selected-customer chip text, so
passing the static 'Customer' string hid the actual name. Pass the resolved
customer's name as label and add a separate field heading.
This commit is contained in:
Luca
2026-07-07 15:45:59 +02:00
parent 0dbf863f60
commit 2c5c1d561b
@@ -104,9 +104,10 @@ export const DocumentActionModal: React.FC<{
<div className="p-4 flex flex-col gap-4 overflow-y-auto"> <div className="p-4 flex flex-col gap-4 overflow-y-auto">
<div> <div>
<div className="text-sm font-medium text-neutral-700 dark:text-neutral-300 mb-1">{t('messages.customer', 'Customer')}</div>
<CustomerPicker <CustomerPicker
value={customer?.id ?? null} value={customer?.id ?? null}
label={t('messages.customer', 'Customer')} label={customer?.label || ''}
onSelect={pick} onSelect={pick}
onCreate={pick} onCreate={pick}
onClear={() => setCustomer(null)} onClear={() => setCustomer(null)}