mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 05:09:05 +00:00
fix: add proccessing page to file upload and reprocessing (#650)
This commit is contained in:
@@ -5,6 +5,7 @@ import { useError } from "../../(errors)/errorContext";
|
||||
|
||||
type FileUploadButton = {
|
||||
transcriptId: string;
|
||||
onUploadComplete?: () => void;
|
||||
};
|
||||
|
||||
export default function FileUploadButton(props: FileUploadButton) {
|
||||
@@ -31,6 +32,7 @@ export default function FileUploadButton(props: FileUploadButton) {
|
||||
const uploadNextChunk = async () => {
|
||||
if (chunkNumber == totalChunks) {
|
||||
setProgress(0);
|
||||
props.onUploadComplete?.();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user