diff --git a/.env b/.env index b184f72..88f0d7d 100644 --- a/.env +++ b/.env @@ -8,4 +8,5 @@ REACT_APP_API_URL=http://localhost:5001/ REACT_APP_BASE_URL=http://localhost:3009/recherche-formation REACT_APP_FRONT_URL=http://localhost:3009/ REACT_APP_ENV=DEV -GENERATE_SOURCEMAP=false \ No newline at end of file +GENERATE_SOURCEMAP=false +REACT_APP_MAINTENANCE=1 \ No newline at end of file diff --git a/src/App.js b/src/App.js index 49e7e6b..fb24cdc 100644 --- a/src/App.js +++ b/src/App.js @@ -52,6 +52,8 @@ import UpdateAttendeeList from "./pages/updateattendeelist"; import AutomaticQuotation from "./pages/automaticquotation"; +import Maintenance from "./pages/maintenance_page" + function App() { const [screenSizeh, getDimension] = useState({ @@ -66,13 +68,18 @@ function App() { API REC = {process.env.REACT_APP_API_URL_REC}
API URL = {process.env.REACT_APP_API_URL}
*/} + +
- + + + + @@ -135,6 +142,7 @@ function App() {
+ diff --git a/src/components/Apprenant.js b/src/components/Apprenant.js index f9b6335..13ecef4 100644 --- a/src/components/Apprenant.js +++ b/src/components/Apprenant.js @@ -131,7 +131,7 @@ const Apprenant = (props) => {
{' '} - En confirmant cette opération, la session de formation sera définitivement supprimée.
+ En confirmant cette opération, l'apprenant sera définitivement supprimé.
@@ -1764,6 +1764,7 @@ const Apprenant = (props) => { if (String(res.data) === String("false")) { alert("Impossible d'exporter les apprenants (2) "); } else { + setSelectionModel([]); fileDownload(res.data, nom_fichier_cmd) } @@ -2998,6 +2999,8 @@ const Apprenant = (props) => { setDelete_Apprenant_Data_api("true"); setDelete_Apprenant_Data_result(res.data.message); + setSelectionModel([]); + setadd_One_Apprenant(''); setdisplay_detail_apprenant(''); Clear_Detail_Apprenant_Fields(); @@ -3054,6 +3057,8 @@ const Apprenant = (props) => { setDelete_LIST_Apprenant_api("true"); setDelete_LIST_Apprenant_result(res.data.message); + setSelectionModel([]); + setadd_One_Apprenant(''); setdisplay_detail_apprenant(''); Clear_Detail_Apprenant_Fields(); @@ -4790,23 +4795,7 @@ const Apprenant = (props) => { /> } /> - {/* - Action    - Supprimer   - Inscrire   - */} + {actionmass_ftion_val &&