mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Simplify play target sorting
This commit is contained in:
parent
bc7ec0e876
commit
ca7311cb08
2 changed files with 10 additions and 16 deletions
|
@ -65,17 +65,20 @@ const RemotePlayMenu: FC<RemotePlayMenuProps> = ({
|
|||
open={open}
|
||||
onClose={onMenuClose}
|
||||
>
|
||||
{!isChromecastPluginLoaded && ([
|
||||
<MenuItem key='cast-unsupported-item' disabled>
|
||||
{!isChromecastPluginLoaded && (
|
||||
<MenuItem disabled>
|
||||
<ListItemIcon>
|
||||
<Warning />
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
{globalize.translate('GoogleCastUnsupported')}
|
||||
</ListItemText>
|
||||
</MenuItem>,
|
||||
<Divider key='cast-unsupported-divider' />
|
||||
])}
|
||||
</MenuItem>
|
||||
)}
|
||||
|
||||
{!isChromecastPluginLoaded && playbackTargets.length > 0 && (
|
||||
<Divider />
|
||||
)}
|
||||
|
||||
{playbackTargets.map(target => (
|
||||
<MenuItem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue