diff --git a/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue b/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue index d7b0ef8..9c1d0ff 100644 --- a/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue +++ b/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue @@ -36,7 +36,7 @@ import { storeToRefs } from "pinia"; const router = useRouter(); const clientStore = useClientStore(); -// Use storeToRefs to keep reactivity for pagination if it was passed as a prop, +// Use storeToRefs to keep reactivity for pagination if it was passed as a prop, // but since we are using the store directly for actions, we can also extract it here if needed. // However, the common pattern is that the parent view passes the data. // Let's check where clientData comes from. It comes from props. @@ -54,9 +54,9 @@ const props = defineProps({ }, // We need to accept pagination as a prop if it is passed from the view pagination: { - type: Object, - default: () => ({}) - } + type: Object, + default: () => ({}), + }, }); const goToClient = () => { @@ -74,14 +74,18 @@ const deleteClient = (client) => { }; const onPageChange = (page) => { - clientStore.fetchClients({ page: page, per_page: props.pagination.per_page }); + clientStore.fetchClients({ page: page, per_page: props.pagination.per_page }); }; const onPerPageChange = (perPage) => { - clientStore.fetchClients({ page: 1, per_page: perPage }); + clientStore.fetchClients({ page: 1, per_page: perPage }); }; const onSearch = (query) => { - clientStore.fetchClients({ page: 1, per_page: props.pagination.per_page, search: query }); + clientStore.fetchClients({ + page: 1, + per_page: props.pagination.per_page, + search: query, + }); }; diff --git a/thanasoft-front/src/components/Organism/CRM/FournisseurDetailPresentation.vue b/thanasoft-front/src/components/Organism/CRM/FournisseurDetailPresentation.vue index aeadbf2..a18eab4 100644 --- a/thanasoft-front/src/components/Organism/CRM/FournisseurDetailPresentation.vue +++ b/thanasoft-front/src/components/Organism/CRM/FournisseurDetailPresentation.vue @@ -1,5 +1,61 @@