mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Avoid updating the playlist, just the paused icon class
This commit is contained in:
parent
efb4a92ba6
commit
f24e299881
1 changed files with 5 additions and 1 deletions
|
@ -455,6 +455,11 @@ export default function () {
|
|||
btnPlayPauseIcon.classList.remove('play_circle_filled', 'pause_circle_filled');
|
||||
btnPlayPauseIcon.classList.add(isPaused ? 'play_circle_filled' : 'pause_circle_filled');
|
||||
|
||||
const playlistIndicator = context.querySelector('.playlistIndexIndicatorImage');
|
||||
if (playlistIndicator) {
|
||||
playlistIndicator.classList.toggle('playlistIndexIndicatorPausedImage', isPaused);
|
||||
}
|
||||
|
||||
buttonVisible(btnPlayPause, isActive);
|
||||
}
|
||||
|
||||
|
@ -599,7 +604,6 @@ export default function () {
|
|||
|
||||
function onPlayPauseStateChanged() {
|
||||
updatePlayPauseState(this.paused(), true);
|
||||
onPlaylistUpdate();
|
||||
}
|
||||
|
||||
function onStateChanged(event, state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue