@@ -35,6 +38,7 @@ import Sidenav from "./examples/Sidenav";
import Configurator from "@/examples/Configurator.vue";
import Navbar from "@/examples/Navbars/Navbar.vue";
import AppFooter from "@/examples/Footer.vue";
+import NotificationContainer from "@/components/NotificationContainer.vue";
import { mapMutations, mapState } from "vuex";
export default {
name: "App",
@@ -43,6 +47,7 @@ export default {
Configurator,
Navbar,
AppFooter,
+ NotificationContainer,
},
computed: {
...mapState([
diff --git a/thanasoft-front/src/components/NotificationContainer.vue b/thanasoft-front/src/components/NotificationContainer.vue
new file mode 100644
index 0000000..db6c2f0
--- /dev/null
+++ b/thanasoft-front/src/components/NotificationContainer.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
diff --git a/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue b/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue
new file mode 100644
index 0000000..1cfe033
--- /dev/null
+++ b/thanasoft-front/src/components/Organism/CRM/ClientDetailPresentation.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue b/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue
index cc2d970..596e018 100644
--- a/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue
+++ b/thanasoft-front/src/components/Organism/CRM/ClientPresentation.vue
@@ -10,7 +10,12 @@
-
+
@@ -20,11 +25,13 @@ import ClientTable from "@/components/molecules/Tables/CRM/ClientTable.vue";
import addButton from "@/components/molecules/new-button/addButton.vue";
import FilterTable from "@/components/molecules/Tables/FilterTable.vue";
import TableAction from "@/components/molecules/Tables/TableAction.vue";
-import { defineProps } from "vue";
+import { defineProps, defineEmits } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
+const emit = defineEmits(["pushDetails"]);
+
defineProps({
clientData: {
type: Array,
@@ -41,4 +48,12 @@ const goToClient = () => {
name: "Creation client",
});
};
+
+const goToDetails = (client) => {
+ emit("pushDetails", client);
+};
+
+const deleteClient = (client) => {
+ emit("deleteClient", client);
+};
diff --git a/thanasoft-front/src/components/Organism/CRM/ContactPresentation.vue b/thanasoft-front/src/components/Organism/CRM/ContactPresentation.vue
index 12c9f9b..ac8610f 100644
--- a/thanasoft-front/src/components/Organism/CRM/ContactPresentation.vue
+++ b/thanasoft-front/src/components/Organism/CRM/ContactPresentation.vue
@@ -10,7 +10,7 @@
-
+
@@ -20,4 +20,12 @@ import ContactTable from "@/components/molecules/Tables/ContactTable.vue";
import addButton from "@/components/molecules/new-button/addButton.vue";
import FilterTable from "@/components/molecules/Tables/FilterTable.vue";
import TableAction from "@/components/molecules/Tables/TableAction.vue";
+import { defineProps } from "vue";
+
+defineProps({
+ contacts: {
+ type: Array,
+ default: [],
+ },
+});
diff --git a/thanasoft-front/src/components/molecules/Tables/CRM/ClientTable.vue b/thanasoft-front/src/components/molecules/Tables/CRM/ClientTable.vue
index 92e9c98..4f70fd0 100644
--- a/thanasoft-front/src/components/molecules/Tables/CRM/ClientTable.vue
+++ b/thanasoft-front/src/components/molecules/Tables/CRM/ClientTable.vue
@@ -91,7 +91,6 @@
-
|
@@ -163,6 +162,33 @@
{{ client.is_active ? "Active" : "Inactive" }}
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
@@ -173,21 +199,25 @@
-
No clients found
+ "
+
Aucun client trouvé
- There are no clients to display at the moment.
+ Aucun client à afficher pour le moment.