diff --git a/frontend/pages/clients.vue b/frontend/pages/clients.vue
index cb6aa48..f16a9fb 100644
--- a/frontend/pages/clients.vue
+++ b/frontend/pages/clients.vue
@@ -18,6 +18,7 @@
Email |
Adresse |
Téléphone |
+ |
@@ -31,6 +32,14 @@
{{ client.email ?? '-' }} |
{{ formatAddress(client) }} |
{{ client.phone ?? '-' }} |
+
+
+ |
|
@@ -55,7 +64,7 @@ import { useClientService } from '~/services/clients'
useHead({ title: 'Clients' })
-const { getAll } = useClientService()
+const { getAll, remove } = useClientService()
const clients = ref([])
const isLoading = ref(true)
const drawerOpen = ref(false)
@@ -86,6 +95,11 @@ function formatAddress(client: Client): string {
.join(', ') || '-'
}
+async function handleDelete(id: number) {
+ await remove(id)
+ await loadClients()
+}
+
async function onSaved() {
await loadClients()
}
|