fix(upload): markAllAsTouched au submit pour afficher les erreurs de validation

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
z3n
2026-06-23 12:37:10 +00:00
parent ac35250a06
commit 68c714cc97

View File

@@ -726,6 +726,7 @@ export class UploadComponent implements OnInit {
onSubmit() { onSubmit() {
const files = this.selectedFiles(); const files = this.selectedFiles();
this.metaForm.markAllAsTouched();
if (files.length === 0 || this.metaForm.invalid) return; if (files.length === 0 || this.metaForm.invalid) return;
this.uploading.set(true); this.uploading.set(true);