mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Convert if/else add/remove statements to toggle
This commit is contained in:
parent
f3b84cadad
commit
14fca37e78
1 changed files with 2 additions and 5 deletions
|
@ -336,11 +336,8 @@ import { appRouter } from '../appRouter';
|
|||
toggleRepeatButton.classList.remove('hide');
|
||||
}
|
||||
|
||||
if (supportedCommands.indexOf('AirPlay') === -1) {
|
||||
toggleAirPlayButton.classList.add('hide');
|
||||
} else {
|
||||
toggleAirPlayButton.classList.remove('hide');
|
||||
}
|
||||
const hideAirPlayButton = supportedCommands.indexOf('AirPlay') === -1;
|
||||
toggleAirPlayButton.classList.toggle('hide', hideAirPlayButton);
|
||||
|
||||
updateRepeatModeDisplay(playbackManager.getRepeatMode());
|
||||
onQueueShuffleModeChange();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue