mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2323 from jarnedemeulemeester/fix-play-icon-replace-resume-icon
Fix replay icon not getting replaced with play_arrow icon
This commit is contained in:
commit
dade850ccf
1 changed files with 7 additions and 3 deletions
|
@ -351,9 +351,13 @@ function reloadPlayButtons(page, item) {
|
|||
const isResumable = item.UserData && item.UserData.PlaybackPositionTicks > 0;
|
||||
hideAll(page, 'btnResume', isResumable);
|
||||
|
||||
if (isResumable) {
|
||||
for (const elem of page.querySelectorAll('.btnPlay')) {
|
||||
elem.querySelector('.detailButton-icon').classList.replace('play_arrow', 'replay');
|
||||
const btnPlay = elem.querySelector('.detailButton-icon');
|
||||
|
||||
if (isResumable) {
|
||||
btnPlay.classList.replace('play_arrow', 'replay');
|
||||
} else {
|
||||
btnPlay.classList.replace('replay', 'play_arrow');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue