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

Add suggested changes

This commit is contained in:
LJQ 2024-03-22 20:55:06 +08:00
parent 59b3159de1
commit aba10a095c

View file

@ -13,6 +13,7 @@ import { LibraryTab } from 'types/libraryTab';
import { getBackdropShape } from 'utils/card'; import { getBackdropShape } from 'utils/card';
import Dashboard from 'utils/dashboard'; import Dashboard from 'utils/dashboard';
import Events from 'utils/events'; 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-itemscontainer/emby-itemscontainer';
import 'elements/emby-button/emby-button'; import 'elements/emby-button/emby-button';
@ -332,7 +333,7 @@ export default function (view, params) {
function onInputCommand(e) { function onInputCommand(e) {
if (e.detail.command === 'search') { if (e.detail.command === 'search') {
e.preventDefault(); e.preventDefault();
Dashboard.navigate('search.html?collectionType=tvshows&parentId=' + params.topParentId); Dashboard.navigate(`search.html?collectionType=${CollectionType.TvShows}&parentId=${params.topParentId}`);
} }
} }