{
collectiviteId &&
tracker('validation_modale_acteurs_fa', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
});
handleSave();
close();
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionDescription/ModaleDescription.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionDescription/ModaleDescription.tsx
index ad619fdae8..965cf67f29 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionDescription/ModaleDescription.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionDescription/ModaleDescription.tsx
@@ -35,7 +35,7 @@ const ModaleDescription = ({ fiche, updateFiche }: ModaleDescriptionProps) => {
const tracker = useEventTracker('app/fiche-action');
const collectivite = useCurrentCollectivite();
- const collectiviteId = collectivite?.collectivite_id || null;
+ const collectiviteId = collectivite?.collectiviteId || null;
const handleSave = () => {
if (!_.isEqual(fiche, editedFiche)) {
@@ -200,7 +200,7 @@ const ModaleDescription = ({ fiche, updateFiche }: ModaleDescriptionProps) => {
onClick: () => {
collectiviteId &&
tracker('validation_modale_modifier_fa', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
});
handleSave();
close();
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionImpact/ModaleActionImpact.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionImpact/ModaleActionImpact.tsx
index 5fec2d9a22..8ce8cb313d 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionImpact/ModaleActionImpact.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionImpact/ModaleActionImpact.tsx
@@ -34,7 +34,7 @@ export const ModaleActionImpact = (props: ModaleActionImpactProps) => {
isOpen,
setIsOpen: (opened) => {
if (opened) {
- trackEvent('cta_fa_fai', { collectivite_id });
+ trackEvent('cta_fa_fai', { collectiviteId: collectivite_id });
}
setIsOpen(opened);
},
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionPlanning/ModalePlanning.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionPlanning/ModalePlanning.tsx
index 09b776f156..e90cf23736 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionPlanning/ModalePlanning.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/FicheActionPlanning/ModalePlanning.tsx
@@ -36,7 +36,7 @@ const ModalePlanning = ({
const tracker = useEventTracker('app/fiche-action');
const collectivite = useCurrentCollectivite();
- const collectiviteId = collectivite?.collectivite_id || null;
+ const collectiviteId = collectivite?.collectiviteId || null;
useEffect(() => {
if (isOpen) setEditedFiche(fiche);
@@ -236,7 +236,7 @@ const ModalePlanning = ({
onClick: () => {
collectiviteId &&
tracker('validation_modale_planning_fa', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
});
handleSave();
close();
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/Indicateurs/IndicateursAssocies.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/Indicateurs/IndicateursAssocies.tsx
index 6c637fbd57..4fa4e8a2da 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/Indicateurs/IndicateursAssocies.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/FicheAction/Indicateurs/IndicateursAssocies.tsx
@@ -66,7 +66,7 @@ const IndicateursAssocies = ({
onClick: () => {
collectiviteId &&
tracker('cta_indicateur_perso_fa', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
});
setIsModalOpen(true);
setIsPanelOpen(false);
@@ -101,7 +101,7 @@ const IndicateursAssocies = ({
onClick={() => {
collectiviteId &&
tracker('cta_indicateur_perso_fa', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
});
setIsModalOpen(true);
setIsPanelOpen(false);
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/ImporterPlan.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/ImporterPlan.tsx
index 4cb5f79a3d..b6464f27be 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/ImporterPlan.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/ImporterPlan.tsx
@@ -97,7 +97,7 @@ const ImporterPlan = () => {
options={DOWNLOAD_TEMPLATE_OPTIONS}
onSelect={(format: string) => {
trackeEvent('cta_telecharger_modele', {
- collectivite_id: collectiviteId,
+ collectiviteId: collectiviteId,
format,
});
window.open(`/modele-import-pa.${format}`, '_blank');
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/Selection.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/Selection.tsx
index 44437c3e73..cf2f83e6d9 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/Selection.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ParcoursCreationPlan/Selection.tsx
@@ -97,7 +97,7 @@ const SelectFlowButton = ({
className="flex flex-col w-full py-6 items-center text-center text-sm !bg-none"
href={url}
onClick={() => {
- trackEvent(trackingId, { collectivite_id });
+ trackEvent(trackingId, { collectiviteId: collectivite_id });
}}
>
{icon}
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Axe.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Axe.tsx
index 88464ec425..c4d9be6901 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Axe.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Axe.tsx
@@ -33,8 +33,8 @@ const Axe = ({ plan, axe, axes, isAxePage, isReadonly }: Props) => {
const collectivite = useCurrentCollectivite();
const canDrag =
- collectivite?.niveau_acces === 'admin' ||
- collectivite?.niveau_acces === 'edition';
+ collectivite?.niveauAcces === 'admin' ||
+ collectivite?.niveauAcces === 'edition';
const uniqueId = `axe-${axe.id}`;
@@ -182,7 +182,7 @@ const Axe = ({ plan, axe, axes, isAxePage, isReadonly }: Props) => {
onClick={() => {
setIsOpen(true);
addAxe({
- collectivite_id: collectivite?.collectivite_id!,
+ collectivite_id: collectivite?.collectiviteId!,
parent: axe.id,
});
}}
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Fiche.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Fiche.tsx
index ed5f53757a..f708b65b2f 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Fiche.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/Fiche.tsx
@@ -24,8 +24,8 @@ const Fiche = ({ planId, axeId, url, fiche, editKeysToInvalidate }: Props) => {
const collectivite = useCurrentCollectivite();
const canDrag =
- collectivite?.niveau_acces === 'admin' ||
- collectivite?.niveau_acces === 'edition';
+ collectivite?.niveauAcces === 'admin' ||
+ collectivite?.niveauAcces === 'edition';
const {
active,
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/NestedDroppableContainers.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/NestedDroppableContainers.tsx
index 909c8f5133..498f20eda5 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/NestedDroppableContainers.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/DragAndDropNestedContainers/NestedDroppableContainers.tsx
@@ -43,7 +43,7 @@ function NestedDroppableContainers({ plan, axe, axes, isAxePage }: Props) {
return (
- {!collectivite?.readonly && (
+ {!collectivite?.readOnly && (
@@ -75,7 +75,7 @@ function NestedDroppableContainers({ plan, axe, axes, isAxePage }: Props) {
axe={axe}
axes={axes}
isAxePage={isAxePage}
- isReadonly={collectivite!.readonly}
+ isReadonly={collectivite!.readOnly}
/>
))}
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/PlanAction.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/PlanAction.tsx
index b96b019258..a46e85a9b3 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/PlanAction.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlanAction/PlanAction.tsx
@@ -28,7 +28,7 @@ export const PlanAction = ({ plan, axe, axes }: PlanActionProps) => {
const router = useRouter();
const collectivite = useCurrentCollectivite();
- const isReadonly = collectivite?.readonly ?? false;
+ const isReadonly = collectivite?.readOnly ?? false;
// Permet de différentier une page axe d'une page plan
const isAxePage = axe.depth === 1;
@@ -41,7 +41,7 @@ export const PlanAction = ({ plan, axe, axes }: PlanActionProps) => {
{/** Header */}
{
onClick: () =>
router.push(
makeCollectivitePlanActionUrl({
- collectiviteId: collectivite?.collectivite_id!,
+ collectiviteId: collectivite?.collectiviteId!,
planActionUid: axe.id.toString(),
})
),
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlansActions.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlansActions.tsx
index 2dcef222a0..31d9033c78 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlansActions.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/PlansActions.tsx
@@ -34,7 +34,7 @@ const PlansActions = () => {
{/* Page de synthèse */}
-
+
@@ -63,13 +63,13 @@ const PlansActions = () => {
collectivitePlanActionAxeFichePath,
]}
>
-
+
{/* Autres routes */}
);
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/Synthese/Synthese.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/Synthese/Synthese.tsx
index f536329283..5aeedbf42b 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/Synthese/Synthese.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/Synthese/Synthese.tsx
@@ -42,7 +42,7 @@ const Synthese = ({ collectiviteId }: SyntheseProps): JSX.Element => {
collectiviteId={collectiviteId}
selectedPlan={selectedPlan}
withoutPlan={selectedPlan.id === 'nc'}
- isReadonly={collectivite?.readonly ?? true}
+ isReadonly={collectivite?.readOnly ?? true}
/>
diff --git a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ToutesLesFichesAction/ToutesLesFichesAction.tsx b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ToutesLesFichesAction/ToutesLesFichesAction.tsx
index 9bb8eb8390..6e77597376 100644
--- a/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ToutesLesFichesAction/ToutesLesFichesAction.tsx
+++ b/app.territoiresentransitions.react/src/app/pages/collectivite/PlansActions/ToutesLesFichesAction/ToutesLesFichesAction.tsx
@@ -88,13 +88,13 @@ export const nameToparams: Record<
const ToutesLesFichesAction = () => {
const collectivite = useCurrentCollectivite();
- const isReadonly = collectivite?.readonly ?? false;
+ const isReadonly = collectivite?.readOnly ?? false;
const { count } = useFicheActionCount();
const [filterParams, setFilterParams] = useSearchParams