mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
Fix Play/Resume highlighting
This commit is contained in:
parent
22e45c2bf2
commit
cf55e3341d
@ -374,12 +374,12 @@ function reloadPlayButtons(page, item) {
|
||||
hideAll(page, 'btnShuffle');
|
||||
}
|
||||
|
||||
if (layoutManager.tv) {
|
||||
const btnResume = page.querySelector('.mainDetailButtons .btnResume');
|
||||
const btnPlay = page.querySelector('.mainDetailButtons .btnPlay');
|
||||
if (layoutManager.tv && !btnResume.classList.contains('hide')) {
|
||||
btnResume.classList.add('fab');
|
||||
} else if (layoutManager.tv && btnResume.classList.contains('hide')) {
|
||||
btnPlay.classList.add('fab');
|
||||
const resumeHidden = btnResume.classList.contains('hide');
|
||||
btnResume.classList.toggle('fab', !resumeHidden);
|
||||
btnPlay.classList.toggle('fab', resumeHidden);
|
||||
}
|
||||
|
||||
return canPlay;
|
||||
|
Loading…
Reference in New Issue
Block a user