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');
|
hideAll(page, 'btnShuffle');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (layoutManager.tv) {
|
||||||
const btnResume = page.querySelector('.mainDetailButtons .btnResume');
|
const btnResume = page.querySelector('.mainDetailButtons .btnResume');
|
||||||
const btnPlay = page.querySelector('.mainDetailButtons .btnPlay');
|
const btnPlay = page.querySelector('.mainDetailButtons .btnPlay');
|
||||||
if (layoutManager.tv && !btnResume.classList.contains('hide')) {
|
const resumeHidden = btnResume.classList.contains('hide');
|
||||||
btnResume.classList.add('fab');
|
btnResume.classList.toggle('fab', !resumeHidden);
|
||||||
} else if (layoutManager.tv && btnResume.classList.contains('hide')) {
|
btnPlay.classList.toggle('fab', resumeHidden);
|
||||||
btnPlay.classList.add('fab');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return canPlay;
|
return canPlay;
|
||||||
|
Loading…
Reference in New Issue
Block a user