update audio-deleted flow

This commit is contained in:
Igor Loskutov
2025-06-18 15:43:34 -04:00
parent 6cb6d90b9a
commit c23e0e07ef
15 changed files with 282 additions and 76 deletions

View File

@@ -54,10 +54,30 @@ export default function TranscriptDetails(details: TranscriptDetails) {
);
}
if (mp3.audioDeleted) {
return (
<Modal
title="Can't find transcription: Transcription file is deleted"
text={`The recording is deleted.`}
/>
);
}
if (transcript?.loading || topics?.loading) {
return <Modal title="Loading" text={"Loading transcript..."} />;
}
if (mp3.error) {
return (
<Modal
title="Transcription error"
text={`There was an error loading the recording. Error: ${mp3.error}`}
/>
);
}
return (
<>
<Grid