From f326efb7b0bac349fa0710eba8c0ead367e0485b Mon Sep 17 00:00:00 2001 From: z3n Date: Tue, 23 Jun 2026 13:02:37 +0000 Subject: [PATCH] =?UTF-8?q?fix(upload):=20bloquer=20l'=C3=A9tape=202=20si?= =?UTF-8?q?=20aucun=20fichier=20s=C3=A9lectionn=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit canProceedFromStep1 retournait true sans fichier → l'utilisateur pouvait atteindre la confirmation et cliquer Importer sans résultat Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- front-public/src/app/pages/upload/upload.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front-public/src/app/pages/upload/upload.component.ts b/front-public/src/app/pages/upload/upload.component.ts index f279d6d..9359e8e 100644 --- a/front-public/src/app/pages/upload/upload.component.ts +++ b/front-public/src/app/pages/upload/upload.component.ts @@ -568,9 +568,7 @@ export class UploadComponent implements OnInit { return !!(this.metaForm.get('versionPatch')?.invalid && this.metaForm.get('versionPatch')?.touched); } canProceedFromStep1 = computed(() => { - /* Sans fichier, on peut toujours passer à l'étape 2 */ - if (this.selectedFiles().length === 0) return true; - /* Avec fichier : validation serveur doit être terminée et sans erreur */ + if (this.selectedFiles().length === 0) return false; if (this.validating()) return false; return this.validationDone() && this.validationErrors().length === 0; });