diff --git a/frontend/app/pages/component/[id]/index.vue b/frontend/app/pages/component/[id]/index.vue
index 28aa96e..4b6ab91 100644
--- a/frontend/app/pages/component/[id]/index.vue
+++ b/frontend/app/pages/component/[id]/index.vue
@@ -408,6 +408,9 @@
+ Certains champs personnalisés sont obligatoires. Veuillez les renseigner avant de valider.
+
+ Merci de renseigner tous les champs personnalisés obligatoires.
+
+ Certains champs personnalisés sont obligatoires. Veuillez les renseigner avant de valider. +
+ Merci de renseigner tous les champs personnalisés obligatoires avant de créer le composant. +
@@ -290,8 +296,11 @@ const { resolveProductLabel, resolveSubcomponentLabel, submitCreation, + requiredCustomFieldsFilled, } = useComponentCreate() +const hasRequiredCustomFields = computed(() => customFieldInputs.value.some(f => f.required)) + const entityTabs = computed(() => [ { key: 'general', label: 'Général' }, { key: 'structure', label: 'Structure' }, diff --git a/makefile b/makefile index 9a1b57c..1493086 100644 --- a/makefile +++ b/makefile @@ -127,6 +127,12 @@ php-cs-fixer-allow-risky: test: $(EXEC_PHP) php -d memory_limit="512M" vendor/bin/phpunit $(FILES) +test-front: + cd frontend && npx vitest run $(FILES) + +test-front-watch: + cd frontend && npx vitest --watch $(FILES) + test-setup: $(SYMFONY_CONSOLE) doctrine:database:create --if-not-exists --env=test $(SYMFONY_CONSOLE) doctrine:schema:update --force --env=test