From b6d6a8b78863d7af279c862019a185de5f6b9cb0 Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Wed, 5 Nov 2025 15:04:45 -0500 Subject: [PATCH] Updated the api call used by the add button in the clients page to use our new dialog. --- frontend/src/components/pages/Clients.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pages/Clients.vue b/frontend/src/components/pages/Clients.vue index a4a32c5..17c415e 100644 --- a/frontend/src/components/pages/Clients.vue +++ b/frontend/src/components/pages/Clients.vue @@ -27,17 +27,20 @@ import { FilterMatchMode } from "@primevue/core"; import { useLoadingStore } from "../../stores/loading"; import { usePaginationStore } from "../../stores/pagination"; import { useFiltersStore } from "../../stores/filters"; +import { useModalStore } from "../../stores/modal"; const loadingStore = useLoadingStore(); const paginationStore = usePaginationStore(); const filtersStore = useFiltersStore(); +const modalStore = useModalStore(); const tableData = ref([]); const totalRecords = ref(0); const isLoading = ref(false); const onClick = () => { - frappe.new_doc("Customer"); + //frappe.new_doc("Customer"); + modalStore.openCreateClient(); }; const filters = {