diff --git a/src/components/Abonnement.js b/src/components/Abonnement.js
index 5e75728..09edf77 100644
--- a/src/components/Abonnement.js
+++ b/src/components/Abonnement.js
@@ -132,6 +132,11 @@ function Abonnement(props) {
setmyApiResponse("False");
}
+ else if (String(data['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + data['message']);
+ history.push("/Connexion");
+ return;
+ }
else {
setmyApiResponse("True");
@@ -169,12 +174,12 @@ function Abonnement(props) {
.then((data) => {
//console.log('LAAAAAAAAA Success:', data['message'], "data['status'] = ", data['status'], " nb_carte", data['nb_carte']);
- if (String(data['status']) === String("true") ) {
+ if (String(data['status']) === String("true")) {
setpaymentmodeapi("True");
setpaymentmode_nb_carte(data['nb_carte']);
- if ( parseInt(data['nb_carte']) > 0 &&
+ if (parseInt(data['nb_carte']) > 0 &&
data['message'] && data['message'][0] &&
Object.keys(data['message'][0]).length > 0) {
setpaymentmode(data['message']);
@@ -184,15 +189,20 @@ function Abonnement(props) {
}
- } else
- {
+ }
+ else if (String(data['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + data['message']);
+ history.push("/Connexion");
+ return;
+ }
+ else {
//console.log("erreur rrrr:" + data['status'])
setpaymentmodeapi("True");
setpaymentmode_nb_carte('0')
-
+
}
-
+
}).catch((error) => {
console.error('GetPayementMode : Error:', error);
@@ -546,9 +556,9 @@ function Abonnement(props) {
setgotocheckout("1");
setselectedpacks(packs);
window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
+ top: 0,
+ behavior: "smooth",
+ });
return;
}
@@ -586,9 +596,9 @@ function Abonnement(props) {
setgotocheckout("1");
setselectedpacks(packs);
window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
+ top: 0,
+ behavior: "smooth",
+ });
}
}
@@ -598,7 +608,7 @@ function Abonnement(props) {
window.scrollTo({
top: 0,
behavior: "smooth",
- });
+ });
if (Client_end_date_abonnement && String(Client_end_date_abonnement).length > 3) {
@@ -649,9 +659,9 @@ function Abonnement(props) {
setgotocheckout("1");
setselectedpacks(packs);
window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
+ top: 0,
+ behavior: "smooth",
+ });
return;
}
@@ -689,9 +699,9 @@ function Abonnement(props) {
setgotocheckout("1");
setselectedpacks(packs);
window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
+ top: 0,
+ behavior: "smooth",
+ });
}
}
}
@@ -1166,6 +1176,10 @@ function Abonnement(props) {
}
}
+ } else if (String(res.data.status) === String("Err_Connexion")) {
+ alert('Erreur: ' + res.data.message);
+ history.push("/Connexion");
+ return;
}
else {
@@ -1282,7 +1296,7 @@ function Abonnement(props) {
{handleOnblur_Code_Promo_api && String(handleOnblur_Code_Promo_api) === "false" &&
-
+
}
diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js
index 876e979..243a2ea 100644
--- a/src/components/DisplayPartnerTrainingsPagination.js
+++ b/src/components/DisplayPartnerTrainingsPagination.js
@@ -9,11 +9,14 @@ import { getCookie } from 'react-use-cookie';
import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
import Footer from "./Fotter";
import tick_ko from "../mysy_img/tick_KO.png";
-
+import Popup from 'reactjs-popup';
+import 'reactjs-popup/dist/index.css';
import { AiFillCloseCircle, } from "react-icons/ai";
import parse from 'html-react-parser'
import { BsEye, BsFileText } from "react-icons/bs";
import { useHistory } from "react-router-dom";
+import axios from "axios";
+import { CiCoffeeBean } from "react-icons/ci";
const DistplayPartnerTraningsPage = (props) => {
@@ -26,6 +29,9 @@ const DistplayPartnerTraningsPage = (props) => {
{ value: 'certif', label: 'Certification' }
]
+
+
+
const [selectedfilt1, setselectedfilt1] = useState("");
const [selectedfilt2, setselectedfilt2] = useState("");
const [selectedfilt3, setselectedfilt3] = useState("");
@@ -243,6 +249,65 @@ const DistplayPartnerTraningsPage = (props) => {
}
},
+ {
+ field: "push_to_lms", headerName: 'Push Elearning',
+ renderCell: (cellValues) => {
+ return (
+
+