1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Replace replay icon with play_arrow icon

This commit is contained in:
jarnedemeulemeester 2021-01-11 11:54:18 +01:00
parent 87e14e0e5b
commit 57b3dc16c9
No known key found for this signature in database
GPG key ID: B61B7B150DB6A6D2

View file

@ -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');
for (const elem of page.querySelectorAll('.btnPlay')) {
const btnPlay = elem.querySelector('.detailButton-icon');
if (isResumable) {
btnPlay.classList.replace('play_arrow', 'replay');
} else {
btnPlay.classList.replace('replay', 'play_arrow');
}
}
} else {