Merge pull request #5293 from scampower3/fix-tvshows-search

Fix searching in tv shows
This commit is contained in:
Bill Thornton
2024-03-22 09:55:30 -04:00
committed by GitHub
+2 -1
View File
@@ -13,6 +13,7 @@ import { LibraryTab } from 'types/libraryTab';
import { getBackdropShape } from 'utils/card';
import Dashboard from 'utils/dashboard';
import Events from 'utils/events';
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
import 'elements/emby-itemscontainer/emby-itemscontainer';
import 'elements/emby-button/emby-button';
@@ -332,7 +333,7 @@ export default function (view, params) {
function onInputCommand(e) {
if (e.detail.command === 'search') {
e.preventDefault();
Dashboard.navigate('search.html?collectionType=tv&parentId=' + params.topParentId);
Dashboard.navigate(`search.html?collectionType=${CollectionType.Tvshows}&parentId=${params.topParentId}`);
}
}