feat(directory) : open detail page on row click, drop inline address from drawers
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user