Skip to content

Commit

Permalink
Label when no subtitles found
Browse files Browse the repository at this point in the history
  • Loading branch information
tympanix committed Mar 8, 2018
1 parent 05ac334 commit 25632dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/js/comp/SubtitleList.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class SubtitleList extends Component {
})

return (
<ul className="subtitle-list">{subs}</ul>
<ul className="subtitle-list">
{subs.length ? subs : <h3 className="center meta">No subtitles found :(</h3>}
</ul>
)
}
}
Expand Down

0 comments on commit 25632dd

Please sign in to comment.