From 3f7a27cdbb5a4b8ccf56b13899d5b51b8f8e8efc Mon Sep 17 00:00:00 2001 From: Nayeli De Jesus Date: Thu, 18 Jul 2024 05:35:12 -0700 Subject: [PATCH] Updated Ux-enhancement I worked on deleting the button since we want training modal to close automatically upon completion. I added the set variables into TrainingProgress(). --- frontend/src/upload/Upload.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index a8e1929d..a2c23639 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -95,20 +95,6 @@ function Upload({ {/* progress bar */} - - ); } @@ -164,6 +150,10 @@ function Upload({ failed: false, }, ); + setDocName(''); + setfiles([]); + setProgress(undefined); + setModalState('INACTIVE'); } } else if (data.status == 'PROGRESS') { setProgress(