Skip to content

Commit

Permalink
showing original_filename on the top
Browse files Browse the repository at this point in the history
  • Loading branch information
DumbMachine committed Sep 12, 2020
1 parent ab5fbb6 commit a9b0465
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frontend/src/pages/annotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class Annotate extends React.Component {
reference_transcription,
is_marked_for_review,
segmentations,
original_filename,
filename,
} = response[1].data;

Expand All @@ -126,6 +127,7 @@ class Annotate extends React.Component {
isDataLoading: false,
referenceTranscription: reference_transcription,
isMarkedForReview: is_marked_for_review,
original_filename,
filename,
});

Expand Down Expand Up @@ -353,7 +355,7 @@ class Annotate extends React.Component {
isPlaying,
labels,
isDataLoading,
filename,
original_filename,
isMarkedForReview,
referenceTranscription,
selectedSegment,
Expand All @@ -368,6 +370,11 @@ class Annotate extends React.Component {
<title>Annotate</title>
</Helmet>
<div className="container h-100">
{!isDataLoading ? (
<div className="row justify-content-md-center my-4 font-weight-bold h4">
{original_filename}
</div>
) : null}
<div className="h-100 mt-5 text-center">
{errorMessage ? (
<Alert
Expand All @@ -391,9 +398,6 @@ class Annotate extends React.Component {
</div>
{!isDataLoading ? (
<div>
<div className="row justify-content-md-center my-4">
{filename}
</div>
<div className="row justify-content-md-center my-4">
<div className="col-1">
<IconButton
Expand Down

0 comments on commit a9b0465

Please sign in to comment.