mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update playlist management
This commit is contained in:
parent
893b492cbb
commit
7a6ac9c251
24 changed files with 121 additions and 79 deletions
|
@ -552,26 +552,24 @@
|
|||
height: imgHeight
|
||||
})) : null;
|
||||
|
||||
if (url === currentImgUrl) {
|
||||
return;
|
||||
if (url !== currentImgUrl) {
|
||||
currentImgUrl = url;
|
||||
|
||||
imageLoader.lazyImage(nowPlayingImageElement, url);
|
||||
}
|
||||
|
||||
currentImgUrl = url;
|
||||
|
||||
imageLoader.lazyImage(nowPlayingImageElement, url);
|
||||
|
||||
userdataButtons.destroy({
|
||||
element: nowPlayingUserData
|
||||
});
|
||||
|
||||
if (nowPlayingItem.Id) {
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).then(function (item) {
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).then(function(item) {
|
||||
userdataButtons.fill({
|
||||
item: item,
|
||||
includePlayed: false,
|
||||
element: nowPlayingUserData
|
||||
});
|
||||
});
|
||||
} else {
|
||||
userdataButtons.destroy({
|
||||
element: nowPlayingUserData
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue