From a9b0465aeaf0ea212cfb530873dc3bcf0929b922 Mon Sep 17 00:00:00 2001 From: dumbmachine Date: Sat, 12 Sep 2020 18:55:57 +0530 Subject: [PATCH] showing original_filename on the top --- frontend/src/pages/annotate.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/annotate.js b/frontend/src/pages/annotate.js index e0fc0ee..fa61258 100644 --- a/frontend/src/pages/annotate.js +++ b/frontend/src/pages/annotate.js @@ -107,6 +107,7 @@ class Annotate extends React.Component { reference_transcription, is_marked_for_review, segmentations, + original_filename, filename, } = response[1].data; @@ -126,6 +127,7 @@ class Annotate extends React.Component { isDataLoading: false, referenceTranscription: reference_transcription, isMarkedForReview: is_marked_for_review, + original_filename, filename, }); @@ -353,7 +355,7 @@ class Annotate extends React.Component { isPlaying, labels, isDataLoading, - filename, + original_filename, isMarkedForReview, referenceTranscription, selectedSegment, @@ -368,6 +370,11 @@ class Annotate extends React.Component { Annotate
+ {!isDataLoading ? ( +
+ {original_filename} +
+ ) : null}
{errorMessage ? ( {!isDataLoading ? (
-
- {filename} -