mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 18:21:54 +01:00
only show audio when its available
This commit is contained in:
parent
c08dea89d1
commit
6ba53ec29a
@ -294,6 +294,7 @@
|
|||||||
"enableSubtitles": "Enable Subtitles",
|
"enableSubtitles": "Enable Subtitles",
|
||||||
"experienceSection": "Viewing experience",
|
"experienceSection": "Viewing experience",
|
||||||
"playbackItem": "Playback settings",
|
"playbackItem": "Playback settings",
|
||||||
|
"audioItem": "Audio",
|
||||||
"qualityItem": "Quality",
|
"qualityItem": "Quality",
|
||||||
"sourceItem": "Video sources",
|
"sourceItem": "Video sources",
|
||||||
"subtitleItem": "Subtitle settings",
|
"subtitleItem": "Subtitle settings",
|
||||||
|
@ -52,13 +52,15 @@ export function SettingsMenu({ id }: { id: string }) {
|
|||||||
>
|
>
|
||||||
{t("player.menus.settings.qualityItem")}
|
{t("player.menus.settings.qualityItem")}
|
||||||
</Menu.ChevronLink>
|
</Menu.ChevronLink>
|
||||||
<Menu.ChevronLink
|
{currentAudioTrack && (
|
||||||
onClick={() => router.navigate("/audio")}
|
<Menu.ChevronLink
|
||||||
rightText={currentAudioTrack ? currentAudioTrack.label : ""}
|
onClick={() => router.navigate("/audio")}
|
||||||
>
|
rightText={currentAudioTrack ? currentAudioTrack.label : ""}
|
||||||
{/* {t("player.menus.settings.qualityItem")} */}
|
>
|
||||||
Audio
|
{t("player.menus.settings.audioItem")}
|
||||||
</Menu.ChevronLink>
|
</Menu.ChevronLink>
|
||||||
|
)}
|
||||||
|
|
||||||
<Menu.ChevronLink
|
<Menu.ChevronLink
|
||||||
onClick={() => router.navigate("/source")}
|
onClick={() => router.navigate("/source")}
|
||||||
rightText={sourceName}
|
rightText={sourceName}
|
||||||
|
Loading…
Reference in New Issue
Block a user