mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix playlist item count variable name
Signed-off-by: Kevin G <kevin@myplaceonline.com>
This commit is contained in:
parent
f3ca76e418
commit
40074c6433
2 changed files with 3 additions and 3 deletions
|
@ -299,7 +299,7 @@ export function getCommands(options) {
|
|||
});
|
||||
}
|
||||
|
||||
if (item.PlaylistItemId && options.playlistId && item.PlaylistIndex < (item.PlaylistItems - 1)) {
|
||||
if (item.PlaylistItemId && options.playlistId && item.PlaylistIndex < (item.PlaylistItemCount - 1)) {
|
||||
commands.push({
|
||||
name: globalize.translate('MoveToBottom'),
|
||||
id: 'movetobottom',
|
||||
|
@ -585,7 +585,7 @@ function executeCommand(item, id, options) {
|
|||
break;
|
||||
case 'movetobottom':
|
||||
apiClient.ajax({
|
||||
url: apiClient.getUrl('Playlists/' + options.playlistId + '/Items/' + item.PlaylistItemId + '/Move/' + (item.PlaylistItems - 1)),
|
||||
url: apiClient.getUrl('Playlists/' + options.playlistId + '/Items/' + item.PlaylistItemId + '/Move/' + (item.PlaylistItemCount - 1)),
|
||||
type: 'POST'
|
||||
}).then(function () {
|
||||
getResolveFunction(resolve, id, true)();
|
||||
|
|
|
@ -121,7 +121,7 @@ function showContextMenu(card, options = {}) {
|
|||
}
|
||||
index++;
|
||||
}
|
||||
item.PlaylistItems = index;
|
||||
item.PlaylistItemCount = index;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue