Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #650 from anct-cnum/fixBugModal
Browse files Browse the repository at this point in the history
Fix : Comportement fermeture modale
  • Loading branch information
Ornella452 authored May 17, 2024
2 parents 7860d59 + 225d03f commit 4cc6897
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/actions/conseiller.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const conseillerActions = {
exportDonneesSubordonnes,
resetExportDonneesCnfs,
isFormulaireChecked,
closeFormulaire,
isUserActif,
isSubordonne,
saveConseillerBeforeFilter,
Expand Down Expand Up @@ -351,11 +350,6 @@ function isFormulaireChecked(sexe, isUpdated) {
return { type: 'SHOW_FORMULAIRE_SEXE_AGE', show };
}

function closeFormulaire() {
window.location.pathname = '/accueil';
return { type: 'CLOSE_FORMULAIRE_SEXE_AGE' };
}

function isUserActif(conseiller) {
const isUserActif = conseiller?.emailCNError !== undefined && conseiller?.mattermost !== undefined;
return { type: 'IS_USER_ACTIF', isUserActif };
Expand Down
1 change: 0 additions & 1 deletion src/components/connected/FormulaireSexeAge.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function FormulaireSexeAge() {
if (date !== '' && date !== null && sexe !== '') {
dispatch(formulaireSexeAgeActions.updateConseiller({ sexe: sexe, dateDeNaissance: date }));
dispatch(conseillerActions.get($id));
dispatch(conseillerActions.closeFormulaire());
} else {
window.scrollTo(0, 0);
dispatch(alerteActions.getMessageAlerte({
Expand Down
5 changes: 0 additions & 5 deletions src/reducers/conseillerReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ export default function conseiller(state = initState, action) {
...state,
showFormular: action.show
};
case 'CLOSE_FORMULAIRE_SEXE_AGE':
return {
showFormular: false,
isUpdated: false
};
case 'GETALL_REQUEST':
return {
...state,
Expand Down

0 comments on commit 4cc6897

Please sign in to comment.