mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix movies Shuffle button
This commit is contained in:
parent
ec75d31a64
commit
74c735dbd0
1 changed files with 5 additions and 5 deletions
|
@ -31,11 +31,11 @@ export default function (view, params, tabContent, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function shuffle() {
|
function shuffle() {
|
||||||
ApiClient.getItem(
|
isLoading = true;
|
||||||
ApiClient.getCurrentUserId(),
|
loading.show();
|
||||||
params.topParentId
|
const newQuery = { ...query, SortBy: 'Random' };
|
||||||
).then((item) => {
|
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
|
||||||
playbackManager.shuffle(item);
|
playbackManager.shuffle(Items[0]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue