mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix access to missing Shuffle button
This commit is contained in:
parent
8ffe7fec2f
commit
5c44b03b5f
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ export default function (view, params, tabContent, options) {
|
||||||
elem.addEventListener('click', onPreviousPageClick);
|
elem.addEventListener('click', onPreviousPageClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
tabContent.querySelector('.btnShuffle').classList.toggle('hide', result.TotalRecordCount < 1);
|
tabContent.querySelector('.btnShuffle')?.classList.toggle('hide', result.TotalRecordCount < 1);
|
||||||
|
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
@ -258,7 +258,7 @@ export default function (view, params, tabContent, options) {
|
||||||
itemsContainer.refreshItems();
|
itemsContainer.refreshItems();
|
||||||
});
|
});
|
||||||
|
|
||||||
tabElement.querySelector('.btnShuffle').addEventListener('click', shuffle);
|
tabElement.querySelector('.btnShuffle')?.addEventListener('click', shuffle);
|
||||||
};
|
};
|
||||||
|
|
||||||
let itemsContainer = tabContent.querySelector('.itemsContainer');
|
let itemsContainer = tabContent.querySelector('.itemsContainer');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue