Kundenliste als Tabelle mit Reitern und Zaehlern, Neuer Kunde und Neuer Lead als Dialoge
Zeilenklick nur ueber isRowActivation, Link.row-link in der ersten Zelle. CreateCustomerForm bleibt exportiert (Zuordnen-Assistent), dort entfaellt der Umschlag um den Dialog. KOMPAT-Regel .side-logo gestrichen. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b6ab7505a
commit
7d4676121e
3 files changed
+174
-147
No files matched your search
@@ -274,19 +274,17 @@ export default function AssignProjectPage() {
|
||||
)}
|
||||
</div>
|
||||
{showNewCustomer && isAdmin && (
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<CreateCustomerForm
|
||||
onCancel={() => setShowNewCustomer(false)}
|
||||
onCreate={async (data) => {
|
||||
const r = await createCustomer(data)
|
||||
if (r.success) {
|
||||
setShowNewCustomer(false)
|
||||
patch({ customerId: r.data.$id, ticketId: '', newTicket: null })
|
||||
}
|
||||
return r
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<CreateCustomerForm
|
||||
onCancel={() => setShowNewCustomer(false)}
|
||||
onCreate={async (data) => {
|
||||
const r = await createCustomer(data)
|
||||
if (r.success) {
|
||||
setShowNewCustomer(false)
|
||||
patch({ customerId: r.data.$id, ticketId: '', newTicket: null })
|
||||
}
|
||||
return r
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<div className="list" style={{ maxHeight: 360, overflowY: 'auto' }}>
|
||||
{filteredCustomers.slice(0, 100).map((c) => (
|
||||
|
||||
Reference in new issue
Block a user