mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated nuget
This commit is contained in:
parent
7d87624880
commit
230add1e17
3 changed files with 35 additions and 4 deletions
|
@ -759,7 +759,7 @@
|
|||
|
||||
var atts = [];
|
||||
|
||||
var itemCommands = LibraryBrowser.getItemCommands(item);
|
||||
var itemCommands = LibraryBrowser.getItemCommands(item, options);
|
||||
|
||||
atts.push('data-itemid="' + item.Id + '"');
|
||||
atts.push('data-commands="' + itemCommands.join(',') + '"');
|
||||
|
@ -784,7 +784,7 @@
|
|||
return html;
|
||||
},
|
||||
|
||||
getItemCommands: function (item) {
|
||||
getItemCommands: function (item, options) {
|
||||
|
||||
var itemCommands = [];
|
||||
|
||||
|
@ -809,7 +809,12 @@
|
|||
}
|
||||
|
||||
if (PlaylistManager.supportsPlaylists(item)) {
|
||||
itemCommands.push('playlist');
|
||||
|
||||
if (options.showRemoveFromPlaylist) {
|
||||
itemCommands.push('removefromplaylist');
|
||||
} else {
|
||||
itemCommands.push('playlist');
|
||||
}
|
||||
}
|
||||
|
||||
return itemCommands;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue