feat(directory) : open detail page on row click, drop inline address from drawers

This commit is contained in:
Matthieu
2026-06-22 13:46:05 +02:00
parent fb8cc790d7
commit 21eeb36766
5 changed files with 2 additions and 77 deletions
@@ -31,9 +31,6 @@
<template #cell-phone="{ item }">
{{ (item as Client).phone ?? '—' }}
</template>
<template #cell-city="{ item }">
{{ (item as Client).city ?? '—' }}
</template>
</MalioDataTable>
</div>
</template>
@@ -142,7 +139,6 @@ const clientColumns = [
{ key: 'name', label: t('prospects.fields.name') },
{ key: 'email', label: t('prospects.fields.email') },
{ key: 'phone', label: t('prospects.fields.phone') },
{ key: 'city', label: t('prospects.fields.city') },
]
async function loadClients() {
@@ -155,8 +151,7 @@ function openCreateClient() {
}
function openEditClient(item: Record<string, unknown>) {
selectedClient.value = item as Client
clientDrawerOpen.value = true
navigateTo(`/directory/clients/${(item as Client).id}`)
}
// --- Prospects ---
@@ -215,8 +210,7 @@ function openCreateProspect() {
}
function openEditProspect(item: Record<string, unknown>) {
selectedProspect.value = item as Prospect
prospectDrawerOpen.value = true
navigateTo(`/directory/prospects/${(item as Prospect).id}`)
}
async function convertProspect(row: ProspectRow) {