mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
Adding empty-state for video captions.
This commit is contained in:
parent
0621cd184d
commit
ad63dd932b
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ function VideoPage({videoFile, prevFile, nextFile, setFavorite, ...props}) {
|
|||
let aboutPane = {
|
||||
menuItem: 'About', render: () => <TabPane>
|
||||
<h3>Size</h3>
|
||||
<p>{video.size ? humanFileSize(video.size) : '???'}</p>
|
||||
<p>{video.size ? humanFileSize(video.size) : 'Unknown'}</p>
|
||||
|
||||
<h3>Source URL</h3>
|
||||
<p>{video.url ? <a href={video.url}>{video.url}</a> : 'N/A'}</p>
|
||||
|
|
@ -126,7 +126,7 @@ function VideoPage({videoFile, prevFile, nextFile, setFavorite, ...props}) {
|
|||
|
||||
let captionsPane = {
|
||||
menuItem: 'Captions', render: () => <TabPane>
|
||||
<pre>{video.caption}</pre>
|
||||
<pre>{video.caption || 'No captions available'}</pre>
|
||||
</TabPane>
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue