Skip to content

Commit

Permalink
Merge pull request #1038 from nayelimdejesus/ux-ehancement
Browse files Browse the repository at this point in the history
Ux Enhancement
  • Loading branch information
dartpain committed Jul 19, 2024
2 parents 4025e55 + 3f7a27c commit 56a16b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions frontend/src/upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ function Upload({

{/* progress bar */}
<ProgressBar progressPercent={progress?.percentage as number} />

<button
onClick={() => {
setDocName('');
setfiles([]);
setProgress(undefined);
setModalState('INACTIVE');
}}
className={`rounded-3xl bg-purple-30 px-4 py-2 text-sm font-medium text-white ${
isCancellable ? '' : 'hidden'
}`}
>
Finish
</button>
</div>
);
}
Expand Down Expand Up @@ -164,6 +150,10 @@ function Upload({
failed: false,
},
);
setDocName('');
setfiles([]);
setProgress(undefined);
setModalState('INACTIVE');
}
} else if (data.status == 'PROGRESS') {
setProgress(
Expand Down

0 comments on commit 56a16b8

Please sign in to comment.