mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-20 00:02:06 +00:00
hide auto subtitle option if there are no subs
This commit is contained in:
parent
cb504ccf55
commit
afebab301f
1 changed files with 17 additions and 15 deletions
|
|
@ -533,7 +533,8 @@ export function CaptionsView({
|
||||||
{t("player.menus.subtitles.offChoice")}
|
{t("player.menus.subtitles.offChoice")}
|
||||||
</CaptionOption>
|
</CaptionOption>
|
||||||
|
|
||||||
{/* Enable subtitles option */}
|
{/* Automatically select subtitles option */}
|
||||||
|
{captions.length > 0 && (
|
||||||
<CaptionOption
|
<CaptionOption
|
||||||
onClick={() => handleRandomSelect()}
|
onClick={() => handleRandomSelect()}
|
||||||
selected={!!selectedCaptionId}
|
selected={!!selectedCaptionId}
|
||||||
|
|
@ -548,6 +549,7 @@ export function CaptionsView({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</CaptionOption>
|
</CaptionOption>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Custom upload option */}
|
{/* Custom upload option */}
|
||||||
<CustomCaptionOption />
|
<CustomCaptionOption />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue