From 724cf478b094ec2461eb02c5b1e8f5a4896803d6 Mon Sep 17 00:00:00 2001 From: Arnaud Ambroselli <31724752+arnaudambro@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:01:03 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20retour=20du=20filtre=20par=20cat=C3=A9go?= =?UTF-8?q?ries=20dans=20les=20acrtions=20des=20personnes=20(#1812)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: retour du filtre par catégories dans les acrtions des personnes * fix: test --- dashboard/src/components/CustomFieldInput.js | 2 +- dashboard/src/components/SelectCustom.js | 2 +- .../tailwind/ActionsCategorySelect.js | 2 +- .../src/scenes/person/OutOfActiveList.js | 2 +- .../scenes/person/components/ActionsPerson.js | 40 ++++++++++++++++--- ...erson-full-test-migrated-from-jest.spec.ts | 2 +- e2e/utils.ts | 2 +- 7 files changed, 41 insertions(+), 11 deletions(-) diff --git a/dashboard/src/components/CustomFieldInput.js b/dashboard/src/components/CustomFieldInput.js index 85258eb44..688f6172d 100644 --- a/dashboard/src/components/CustomFieldInput.js +++ b/dashboard/src/components/CustomFieldInput.js @@ -138,7 +138,7 @@ const CustomFieldInput = ({ field, values, handleChange, model, colWidth = null, inputId={id} classNamePrefix={id} value={(typeof values[field.name] === 'string' ? [values[field.name]] : values[field.name])?.map((o) => ({ value: o, label: o }))} - placeholder={' -- Choisir -- '} + placeholder={'Choisir...'} getOptionValue={(i) => i.value} getOptionLabel={(i) => i.label} isDisabled={disabled} diff --git a/dashboard/src/components/SelectCustom.js b/dashboard/src/components/SelectCustom.js index 2554823f5..8b9fc831c 100644 --- a/dashboard/src/components/SelectCustom.js +++ b/dashboard/src/components/SelectCustom.js @@ -9,7 +9,7 @@ const SelectCustom = ({ creatable, ...props }) => { return ( 'Aucun résultat'} formatCreateLabel={(inputValue) => `Ajouter "${inputValue}"`} theme={(defaultTheme) => ({ diff --git a/dashboard/src/components/tailwind/ActionsCategorySelect.js b/dashboard/src/components/tailwind/ActionsCategorySelect.js index bd7d7d1f5..a530649be 100644 --- a/dashboard/src/components/tailwind/ActionsCategorySelect.js +++ b/dashboard/src/components/tailwind/ActionsCategorySelect.js @@ -134,7 +134,7 @@ const ActionsCategorySelect = ({ label, values, onChange, id, withMostUsed, isDi ))} - {!selected.length &&
-- Choisir --
} + {!selected.length &&
Choisir...
}