From a5f73e4b6e15f31f8acadf28390c78d5951efc8d Mon Sep 17 00:00:00 2001 From: Jason McCollum Date: Mon, 5 Feb 2024 09:27:06 -0800 Subject: [PATCH] Use custom ErrorStateMatcher on file upload input --- .../upload-dialog.component.html | 5 +++- .../upload-dialog/upload-dialog.component.ts | 26 ++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/application/frontend/src/app/core/containers/upload-dialog/upload-dialog.component.html b/application/frontend/src/app/core/containers/upload-dialog/upload-dialog.component.html index a3da1fbe..b9a429b1 100644 --- a/application/frontend/src/app/core/containers/upload-dialog/upload-dialog.component.html +++ b/application/frontend/src/app/core/containers/upload-dialog/upload-dialog.component.html @@ -46,10 +46,11 @@

[readonly]="true" [formControl]="fileName" (click)="selectFile()" + [errorStateMatcher]="fileUploadErrorStateMatcher" required /> {{ (messages$ | async)?.formFileRequired || 'File is required' }} @@ -62,6 +63,7 @@

{{ (messages$ | async)?.formInvalidRequestFormat || 'Invalid request format' }} + .json or .zip