1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Hide shuffle button if no results

This commit is contained in:
murphy52589 2022-07-01 14:23:54 -05:00 committed by Dmitry Lyzo
parent e9bac09bd6
commit 5257e1ee1a

View file

@ -117,6 +117,9 @@ export default function (view, params, tabContent) {
itemsContainer.innerHTML = html;
imageLoader.lazyChildren(itemsContainer);
libraryBrowser.saveQueryValues(getSavedQueryKey(page), query);
tabContent.querySelector('.btnShuffle').classList.toggle('hide', result.TotalRecordCount < 1);
loading.hide();
isLoading = false;